From a72f8387ad877720cc43046a3d9127790876794c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Mon, 4 Sep 2023 21:05:22 +0200 Subject: [PATCH] ttwrplus: disable low battery warning T-TWR Plus appears to have sever voltage drops during normal operation, therefore we cannot use OpenRTX's low voltage warning screen on this radio. TG-553 --- openrtx/src/ui/default/ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openrtx/src/ui/default/ui.c b/openrtx/src/ui/default/ui.c index 234ba870..35c61984 100644 --- a/openrtx/src/ui/default/ui.c +++ b/openrtx/src/ui/default/ui.c @@ -1259,6 +1259,7 @@ void ui_updateFSM(bool *sync_rtx) // drop caused by the RF PA power absorption causes spurious triggers of // the low battery alert. bool txOngoing = platform_getPttStatus(); +#if !defined(PLATFORM_TTWRPLUS) if ((!state.emergency) && (!txOngoing) && (state.charge <= 0)) { state.ui_screen = LOW_BAT; @@ -1269,6 +1270,7 @@ void ui_updateFSM(bool *sync_rtx) } return; } +#endif // PLATFORM_TTWRPLUS long long now = getTick(); // Process pressed keys