gps: adapt ui-new and the sensor managers

This commit is contained in:
Florent committed 2026-11-08 08:47:34 -04:00
1 parent a0c5854b59
commit 5303703750
9 files changed
+53 -18

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ void ThinkNodeM1SensorManager::loop() {
_location->loop();
if (millis() > next_gps_update) {
if (_location->isEnabled() && _location->isValid()) {
if (_location->isGpsOn() && _location->hasValidFix()) {
node_lat = ((double)_location->getLatitude())/1000000.;
node_lon = ((double)_location->getLongitude())/1000000.;
node_altitude = ((double)_location->getAltitude()) / 1000.0;