Save 60 bytes
This commit is contained in:
17
ui/main.c
17
ui/main.c
@@ -900,13 +900,14 @@ void UI_DisplayMain(void)
|
|||||||
// show the scan list assigment symbols
|
// show the scan list assigment symbols
|
||||||
const ChannelAttributes_t att = gMR_ChannelAttributes[gEeprom.ScreenChannel[vfo_num]];
|
const ChannelAttributes_t att = gMR_ChannelAttributes[gEeprom.ScreenChannel[vfo_num]];
|
||||||
|
|
||||||
if (att.scanlist1)
|
countList = att.scanlist1 + att.scanlist2 + att.scanlist3;
|
||||||
countList++;
|
|
||||||
if (att.scanlist2)
|
|
||||||
countList++;
|
|
||||||
if (att.scanlist3)
|
|
||||||
countList++;
|
|
||||||
|
|
||||||
|
if(countList == 0)
|
||||||
|
{
|
||||||
|
memcpy(p_line0 + 127 - (1 * 6), BITMAP_ScanList0, sizeof(BITMAP_ScanList0));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
shiftList = countList;
|
shiftList = countList;
|
||||||
|
|
||||||
if (att.scanlist1)
|
if (att.scanlist1)
|
||||||
@@ -923,10 +924,6 @@ void UI_DisplayMain(void)
|
|||||||
{
|
{
|
||||||
memcpy(p_line0 + 127 - (shiftList * 6), BITMAP_ScanList3, sizeof(BITMAP_ScanList3));
|
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
|
else
|
||||||
|
Reference in New Issue
Block a user