increased gps duty cycle timing to 3 minutes awake

This commit is contained in:
pelgraine
2026-02-10 22:40:05 +11:00
parent f0dc218a57
commit fa747bfce2
3 changed files with 7 additions and 13 deletions

View File

@@ -939,6 +939,12 @@ void handleKeyboardInput() {
Serial.println("Nav: Back to home");
ui_task.gotoHomeScreen();
break;
case 'u':
case 'U':
// Forward to UI for UTC offset editor on GPS page
ui_task.injectKey('u');
break;
case ' ':
// Space - also acts as next/select

View File

@@ -553,12 +553,6 @@ public:
if (c == KEY_LEFT || c == KEY_PREV) {
_page = (_page + HomePage::Count - 1) % HomePage::Count;
#if ENV_INCLUDE_GPS == 1
if (_page == HomePage::GPS) {
extern GPSDutyCycle gpsDuty;
gpsDuty.forceWake();
}
#endif
return true;
}
if (c == KEY_NEXT || c == KEY_RIGHT) {
@@ -566,12 +560,6 @@ public:
if (_page == HomePage::RECENT) {
_task->showAlert("Recent adverts", 800);
}
#if ENV_INCLUDE_GPS == 1
if (_page == HomePage::GPS) {
extern GPSDutyCycle gpsDuty;
gpsDuty.forceWake();
}
#endif
return true;
}
if (c == KEY_ENTER && _page == HomePage::BLUETOOTH) {

View File

@@ -17,7 +17,7 @@
// How long to leave GPS powered on while acquiring a fix (ms)
#ifndef GPS_ACQUIRE_TIMEOUT_MS
#define GPS_ACQUIRE_TIMEOUT_MS 60000 // 60 seconds
#define GPS_ACQUIRE_TIMEOUT_MS 180000 // 3 minutes
#endif
// How long to sleep between acquisition cycles (ms)