Update MeshCore features and OTA layout handling

This commit is contained in:
mikecarper committed 2026-08-18 23:17:42 -07:00
1 parent 0c4619bcc3
commit 47993d178e
74 files changed
+1696 -1169

No files matched your search

+5 -4
View File
@@ -87,8 +87,9 @@ void HWTSensorManager::loop() {
if (powersaving_enabled && _location->getGPSPowerSaving()) {
unsigned long next_off = _location->getNextGPSOff();
unsigned long next_on = _location->getNextGPSOn();
if (gps_active && ((next_off != 0 && (long)(now - next_off) >= 0)
|| !_location->waitingTimeSync())) {
if (gps_active && !gpsTelemetryReceiverRequired(now)
&& ((next_off != 0 && (long)(now - next_off) >= 0)
|| !_location->waitingTimeSync())) {
POWERSAVING_DEBUG_PRINTLN("GPS entering sleep");
stop_gps();
} else if (!gps_active && ((next_on != 0 && (long)(now - next_on) >= 0)
@@ -108,7 +109,7 @@ void HWTSensorManager::loop() {
processGpsTelemetryFix(node_lat, node_lon, node_altitude, now);
MESH_DEBUG_PRINTLN("lat %f lon %f", node_lat, node_lon);
}
next_gps_update = now + 1000;
next_gps_update = now + getGpsUpdateIntervalMillis();
}
}
@@ -134,7 +135,7 @@ bool HWTSensorManager::setSettingValue(const char* name, const char* value) {
}
return true;
}
return false; // not supported
return SensorManager::setSettingValue(name, value);
}
void HWTSensorManager::setPowerSavingEnabled(bool enabled) {