Add infinit loop

This commit is contained in:
Armel FAUVEAU
2024-02-28 05:52:48 +01:00
parent fe69506f31
commit 0a985ec0bf
3 changed files with 23 additions and 2 deletions

View File

@@ -44,6 +44,20 @@ const uint8_t gFontKeyLock[1][8] =
{0x7c, 0x46, 0x45, 0x45, 0x45, 0x45, 0x46, 0x7c}
};
const uint8_t gFontScanAll[10] =
{
0b00000000,
0b00111110,
0b01000001,
0b01000001,
0b00100010,
0b00011100,
0b00100010,
0b01000001,
0b01000001,
0b00111110
};
/*
const uint8_t gFontF[1][7] =
{

View File

@@ -11,6 +11,7 @@ extern const uint8_t gFontPttOnePush[2][6];
extern const uint8_t gFontPttClassic[2][6];
extern const uint8_t gFontFM[2][6];
extern const uint8_t gFontKeyLock[1][8];
extern const uint8_t gFontScanAll[10];
/*
extern const uint8_t gFontF[1][7];
*/

View File

@@ -85,13 +85,19 @@ void UI_DisplayStatus()
switch(gEeprom.SCAN_LIST_DEFAULT) {
case 0: s = "1"; break;
case 1: s = "2"; break;
case 2: s = "*"; break;
case 2: s = ""; break;
}
}
else { // frequency mode
s = "S";
}
UI_PrintStringSmallBufferNormal(s, line + x + 1);
if ((s != NULL) && (s[0] != '\0')) {
UI_PrintStringSmallBufferNormal(s, line + x + 1);
}
else
{
memcpy(line + x, gFontScanAll, sizeof(gFontScanAll));
}
x1 = x + 10;
}
}