gps: add GpsDriver, handle the hardware and software switches in the drivers

This commit is contained in:
Florent committed 2026-11-08 08:47:34 -04:00
1 parent 978b6e01be
commit 81afafcb35
28 files changed
+892 -468

No files matched your search

+3
View File
@@ -173,6 +173,9 @@ private:
#if ENV_INCLUDE_GPS == 1
void applyGpsPrefs() {
char period[11];
snprintf(period, sizeof(period), "%lu", (unsigned long)_prefs.gps_period);
sensors.setSettingValue("gps_period", period);
sensors.setSettingValue("gps", _prefs.gps_enabled?"1":"0");
}
#endif