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
This commit is contained in:
Niccolò Izzo 2023-09-04 21:05:22 +02:00 committed by Silvano Seva
parent ad1beffcf3
commit a72f8387ad
1 changed files with 2 additions and 0 deletions

View File

@ -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