Save 60 bytes

This commit is contained in:
Armel FAUVEAU
2024-07-25 06:22:50 +02:00
parent 0fe97245d8
commit 8b8b258e39

View File

@@ -900,13 +900,14 @@ void UI_DisplayMain(void)
// show the scan list assigment symbols
const ChannelAttributes_t att = gMR_ChannelAttributes[gEeprom.ScreenChannel[vfo_num]];
if (att.scanlist1)
countList++;
if (att.scanlist2)
countList++;
if (att.scanlist3)
countList++;
countList = att.scanlist1 + att.scanlist2 + att.scanlist3;
if(countList == 0)
{
memcpy(p_line0 + 127 - (1 * 6), BITMAP_ScanList0, sizeof(BITMAP_ScanList0));
}
else
{
shiftList = countList;
if (att.scanlist1)
@@ -923,10 +924,6 @@ void UI_DisplayMain(void)
{
memcpy(p_line0 + 127 - (shiftList * 6), BITMAP_ScanList3, sizeof(BITMAP_ScanList3));
}
if(countList == 0)
{
memcpy(p_line0 + 127 - (1 * 6), BITMAP_ScanList0, sizeof(BITMAP_ScanList0));
}
}
else