Sync repeater GPS weekly in power saving mode

This commit is contained in:
mikecarper committed 2026-09-16 22:42:51 -07:00
1 parent fd920624a2
commit aaa2b8b4e3
3 files changed
+14 -2

No files matched your search

+3 -2
View File
@@ -208,8 +208,9 @@ void setup() {
// the receiver only until the first valid fix has been cached.
sensors.setGpsTelemetryStopAfterFix(true);
if (sensors.getLocationProvider() != NULL) {
// Keep GPS awake for at most 10 minutes, then asleep for one day.
sensors.getLocationProvider()->setPowerSavingProfile(600, 86400);
// Keep GPS awake for at most 10 minutes, then asleep for one week.
sensors.getLocationProvider()->setPowerSavingProfile(
10UL * 60UL, 7UL * 24UL * 60UL * 60UL);
}
#endif