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:
parent
ad1beffcf3
commit
a72f8387ad
|
|
@ -1259,6 +1259,7 @@ void ui_updateFSM(bool *sync_rtx)
|
||||||
// drop caused by the RF PA power absorption causes spurious triggers of
|
// drop caused by the RF PA power absorption causes spurious triggers of
|
||||||
// the low battery alert.
|
// the low battery alert.
|
||||||
bool txOngoing = platform_getPttStatus();
|
bool txOngoing = platform_getPttStatus();
|
||||||
|
#if !defined(PLATFORM_TTWRPLUS)
|
||||||
if ((!state.emergency) && (!txOngoing) && (state.charge <= 0))
|
if ((!state.emergency) && (!txOngoing) && (state.charge <= 0))
|
||||||
{
|
{
|
||||||
state.ui_screen = LOW_BAT;
|
state.ui_screen = LOW_BAT;
|
||||||
|
|
@ -1269,6 +1270,7 @@ void ui_updateFSM(bool *sync_rtx)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif // PLATFORM_TTWRPLUS
|
||||||
|
|
||||||
long long now = getTick();
|
long long now = getTick();
|
||||||
// Process pressed keys
|
// Process pressed keys
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue