Merge upstream/dev (80 commits) [upstream-sync]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-12 09:22:19 +01:00
commit 8d0b0dd164
140 files changed
+3573 -853

No files matched your search

+2 -1
View File
@@ -1167,7 +1167,8 @@ void MyMesh::onPeerDataRecv(mesh::Packet *packet, uint8_t type, int sender_idx,
}
}
uint8_t temp[166];
// 5-byte datagram header + 3-byte reflected CLI prefix + 160-byte reply text + NUL
uint8_t temp[169];
char *command = (char *)&data[5];
char *reply = (char *)&temp[5];
if (is_retry) {
+11 -4
View File
@@ -415,10 +415,17 @@ protected:
#if ENV_INCLUDE_GPS == 1
void applyGpsPrefs() {
// 0 off / 1 on / 2 duty cycle -- pass the mode through, not a boolean, or
// a duty-cycled node comes back from a reboot with GPS powered forever.
const char* mode = _prefs.gps_enabled == 2 ? "2" : (_prefs.gps_enabled ? "1" : "0");
sensors.setSettingValue("gps", mode);
if (sensors.getSettingByKey("gps_interval") != nullptr) {
// gps_interval was introduced only for EnvironmentSensorManager
// and has little interest ... kept only as a legacy
char interval[11];
snprintf(interval, sizeof(interval), "%lu", (unsigned long)_prefs.gps_interval);
sensors.setSettingValue("gps_interval", interval);
}
_prefs.getGpsPrefs()->apply(sensors);
// 2 = duty cycle -- apply() only knows on/off, and a duty-cycled node must
// not come back from a reboot with GPS powered forever
if (_prefs.gps_enabled == 2) sensors.setSettingValue("gps", "2");
}
#endif