gps: add GpsDriver, handle the hardware and software switches in the drivers
This commit is contained in:
1 parent
978b6e01be
commit
81afafcb35
28 files changed
+892
-468
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user