From fa747bfce2008910d4e7351524fec15fc74f3953 Mon Sep 17 00:00:00 2001 From: pelgraine <140762863+pelgraine@users.noreply.github.com> Date: Tue, 10 Feb 2026 22:40:05 +1100 Subject: [PATCH] increased gps duty cycle timing to 3 minutes awake --- examples/companion_radio/main.cpp | 6 ++++++ examples/companion_radio/ui-new/UITask.cpp | 12 ------------ variants/lilygo_tdeck_pro/GPSDutyCycle.h | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index f5ce61e..3e354c4 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -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 diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index b3e4c14..9147447 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -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) { diff --git a/variants/lilygo_tdeck_pro/GPSDutyCycle.h b/variants/lilygo_tdeck_pro/GPSDutyCycle.h index 49a1e57..f7125a7 100644 --- a/variants/lilygo_tdeck_pro/GPSDutyCycle.h +++ b/variants/lilygo_tdeck_pro/GPSDutyCycle.h @@ -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)