CommonCLI: gps management commands

This commit is contained in:
Florent committed 2025-10-05 19:23:52 +02:00
1 parent ccc82f5639
commit 062e355578
6 files changed
+72

No files matched your search

@@ -78,6 +78,16 @@ public :
}
}
bool isActive() override {
// directly read the enable pin if present as gps can be
// activated/deactivated outside of here ...
if (_pin_en != -1) {
return digitalRead(_pin_en) == PIN_GPS_EN_ACTIVE;
} else {
return true; // no enable so must be active
}
}
void syncTime() override { nmea.clear(); LocationProvider::syncTime(); }
long getLatitude() override { return nmea.getLatitude(); }
long getLongitude() override { return nmea.getLongitude(); }