Don't display mic bar over low the battery popup

This commit is contained in:
Krzysiek Egzmont
2023-11-07 00:11:50 +01:00
parent 05feff432e
commit ba29176f33

View File

@@ -76,6 +76,9 @@ void UI_DisplayAudioBar(void)
{ {
if (gSetting_mic_bar) if (gSetting_mic_bar)
{ {
if(gLowBattery && !gLowBatteryConfirmed)
return;
const unsigned int line = 3; const unsigned int line = 3;
const unsigned int bar_x = 2; const unsigned int bar_x = 2;
const unsigned int bar_width = LCD_WIDTH - 2 - bar_x; const unsigned int bar_width = LCD_WIDTH - 2 - bar_x;