Save 12 bytes

This commit is contained in:
Armel FAUVEAU
2024-12-23 04:50:54 +01:00
parent a9dc598107
commit 2006ef9820

View File

@@ -278,22 +278,15 @@ void DisplayRSSIBar(const bool now)
if(RxLine >= 0 && center_line != CENTER_LINE_IN_USE) if(RxLine >= 0 && center_line != CENTER_LINE_IN_USE)
{ {
switch(RxBlink) if (RxBlink == 0 || RxBlink == 1) {
{
case 0:
UI_PrintStringSmallBold("RX", 8, 0, RxLine); UI_PrintStringSmallBold("RX", 8, 0, RxLine);
break; if (RxBlink == 1) RxBlink = 2;
case 1: } else {
UI_PrintStringSmallBold("RX", 8, 0, RxLine);
RxBlink = 2;
break;
case 2:
for (uint8_t i = 8; i < 24; i++) for (uint8_t i = 8; i < 24; i++)
{ {
gFrameBuffer[RxLine][i] = 0x00; gFrameBuffer[RxLine][i] = 0x00;
} }
RxBlink = 1; RxBlink = 1;
break;
} }
ST7565_BlitLine(RxLine); ST7565_BlitLine(RxLine);
} }