mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-10-23 13:22:22 +00:00
Sync repeater GPS weekly in power saving mode
This commit is contained in:
1 parent
fd920624a2
commit
aaa2b8b4e3
3 files changed
+14
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user