Remove blink keylock and improve MAIN ONLY

This commit is contained in:
Armel FAUVEAU
2024-03-01 04:14:06 +01:00
parent 26123d245a
commit 3e72d855a6
2 changed files with 63 additions and 36 deletions

View File

@@ -151,17 +151,7 @@ void UI_DisplayStatus()
// KEY-LOCK indicator
if (gEeprom.KEY_LOCK) {
static uint8_t blink = 0;
if(FUNCTION_IsRx() || gCurrentFunction == FUNCTION_TRANSMIT) blink = 0;
if(blink < 5)
{
memcpy(line + x + 1, gFontKeyLock, sizeof(gFontKeyLock));
}
blink = (blink++ < 10) ? blink : 0;
memcpy(line + x + 1, gFontKeyLock, sizeof(gFontKeyLock));
x += sizeof(gFontKeyLock);
x1 = x;
}