Merge branch 'master' into dismiss_frames

This commit is contained in:
Jason P 2025-08-15 07:18:18 -05:00 committed by GitHub
commit 940fe1764f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 20 deletions

View File

@ -3,7 +3,7 @@
# trunk-ignore-all(hadolint/DL3008): Do not pin apt package versions # trunk-ignore-all(hadolint/DL3008): Do not pin apt package versions
# trunk-ignore-all(hadolint/DL3013): Do not pin pip package versions # trunk-ignore-all(hadolint/DL3013): Do not pin pip package versions
FROM python:3.13-bookworm AS builder FROM python:3.13-slim-trixie AS builder
ARG PIO_ENV=native ARG PIO_ENV=native
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC ENV TZ=Etc/UTC
@ -36,7 +36,7 @@ RUN curl -L "https://github.com/meshtastic/web/releases/download/v$(cat /tmp/fir
##### PRODUCTION BUILD ############# ##### PRODUCTION BUILD #############
FROM debian:bookworm-slim FROM debian:trixie-slim
LABEL org.opencontainers.image.title="Meshtastic" \ LABEL org.opencontainers.image.title="Meshtastic" \
org.opencontainers.image.description="Debian Meshtastic daemon and web interface" \ org.opencontainers.image.description="Debian Meshtastic daemon and web interface" \
org.opencontainers.image.url="https://meshtastic.org" \ org.opencontainers.image.url="https://meshtastic.org" \
@ -51,8 +51,8 @@ ENV TZ=Etc/UTC
USER root USER root
RUN apt-get update && apt-get --no-install-recommends -y install \ RUN apt-get update && apt-get --no-install-recommends -y install \
libc-bin libc6 libgpiod2 libyaml-cpp0.7 libi2c0 libuv1 libusb-1.0-0-dev \ libc-bin libc6 libgpiod3 libyaml-cpp0.8 libi2c0 libuv1t64 libusb-1.0-0-dev \
liborcania2.3 libulfius2.7 libssl3 \ liborcania2.3 libulfius2.7t64 libssl3t64 \
libx11-6 libinput10 libxkbcommon-x11-0 \ libx11-6 libinput10 libxkbcommon-x11-0 \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \ && apt-get clean && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /var/lib/meshtasticd \ && mkdir -p /var/lib/meshtasticd \

View File

@ -17,7 +17,6 @@ build_src_filter =
+<mesh/raspihttp/> +<mesh/raspihttp/>
-<mesh/eth/> -<mesh/eth/>
-<modules/esp32> -<modules/esp32>
+<../variants/portduino>
lib_deps = lib_deps =
${env.lib_deps} ${env.lib_deps}
@ -35,6 +34,7 @@ lib_deps =
build_flags = build_flags =
${arduino_base.build_flags} ${arduino_base.build_flags}
-D ARCH_PORTDUINO
-fPIC -fPIC
-Isrc/platform/portduino -Isrc/platform/portduino
-DRADIOLIB_EEPROM_UNSUPPORTED -DRADIOLIB_EEPROM_UNSUPPORTED

View File

@ -78,16 +78,15 @@ void CannedMessageModule::LaunchWithDestination(NodeNum newDest, uint8_t newChan
lastDestSet = true; lastDestSet = true;
// Rest of function unchanged... // Rest of function unchanged...
// Always select the first real canned message on activation // Upon activation, highlight "[Select Destination]"
int firstRealMsgIdx = 0; int selectDestination = 0;
for (int i = 0; i < messagesCount; ++i) { for (int i = 0; i < messagesCount; ++i) {
if (strcmp(messages[i], "[Select Destination]") != 0 && strcmp(messages[i], "[Exit]") != 0 && if (strcmp(messages[i], "[Select Destination]") == 0) {
strcmp(messages[i], "[---- Free Text ----]") != 0) { selectDestination = i;
firstRealMsgIdx = i;
break; break;
} }
} }
currentMessageIndex = firstRealMsgIdx; currentMessageIndex = selectDestination;
// This triggers the canned message list // This triggers the canned message list
runState = CANNED_MESSAGE_RUN_STATE_ACTIVE; runState = CANNED_MESSAGE_RUN_STATE_ACTIVE;
@ -999,17 +998,16 @@ int32_t CannedMessageModule::runOnce()
this->notifyObservers(&e); this->notifyObservers(&e);
return 2000; return 2000;
} }
// Always highlight the first real canned message when entering the message list // Highlight [Select Destination] initially when entering the message list
else if ((this->runState != CANNED_MESSAGE_RUN_STATE_FREETEXT) && (this->currentMessageIndex == -1)) { else if ((this->runState != CANNED_MESSAGE_RUN_STATE_FREETEXT) && (this->currentMessageIndex == -1)) {
int firstRealMsgIdx = 0; int selectDestination = 0;
for (int i = 0; i < this->messagesCount; ++i) { for (int i = 0; i < this->messagesCount; ++i) {
if (strcmp(this->messages[i], "[Select Destination]") != 0 && strcmp(this->messages[i], "[Exit]") != 0 && if (strcmp(this->messages[i], "[Select Destination]") == 0) {
strcmp(this->messages[i], "[---- Free Text ----]") != 0) { selectDestination = i;
firstRealMsgIdx = i;
break; break;
} }
} }
this->currentMessageIndex = firstRealMsgIdx; this->currentMessageIndex = selectDestination;
e.action = UIFrameEvent::Action::REGENERATE_FRAMESET; e.action = UIFrameEvent::Action::REGENERATE_FRAMESET;
this->runState = CANNED_MESSAGE_RUN_STATE_ACTIVE; this->runState = CANNED_MESSAGE_RUN_STATE_ACTIVE;
} else if (this->runState == CANNED_MESSAGE_RUN_STATE_ACTION_UP) { } else if (this->runState == CANNED_MESSAGE_RUN_STATE_ACTION_UP) {

View File

@ -602,7 +602,7 @@ void TraceRouteModule::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state
int start = 0; int start = 0;
int newlinePos = resultText.indexOf('\n', start); int newlinePos = resultText.indexOf('\n', start);
while (newlinePos != -1 || start < resultText.length()) { while (newlinePos != -1 || start < static_cast<int>(resultText.length())) {
String segment; String segment;
if (newlinePos != -1) { if (newlinePos != -1) {
segment = resultText.substring(start, newlinePos); segment = resultText.substring(start, newlinePos);
@ -624,7 +624,7 @@ void TraceRouteModule::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state
int lastGoodBreak = -1; int lastGoodBreak = -1;
bool lineComplete = false; bool lineComplete = false;
for (int i = 0; i < remaining.length(); i++) { for (int i = 0; i < static_cast<int>(remaining.length()); i++) {
char ch = remaining.charAt(i); char ch = remaining.charAt(i);
String testLine = tempLine + ch; String testLine = tempLine + ch;

View File

@ -1,7 +1,6 @@
[native_base] [native_base]
extends = portduino_base extends = portduino_base
build_flags = ${portduino_base.build_flags} -I variants/native/portduino build_flags = ${portduino_base.build_flags} -I variants/native/portduino
-D ARCH_PORTDUINO
-I /usr/include -I /usr/include
board = cross_platform board = cross_platform
lib_deps = ${portduino_base.lib_deps} lib_deps = ${portduino_base.lib_deps}