Add Rx/Tx timer

This commit is contained in:
Armel FAUVEAU
2024-04-16 20:06:37 +02:00
parent 27bfe1f4ac
commit 1051bf0e68
2 changed files with 3 additions and 12 deletions

View File

@@ -250,8 +250,6 @@ void UI_DisplayAudioBar(void)
DrawLevelBar(62, line, bars);
gUpdateStatus = true;
if (gCurrentFunction == FUNCTION_TRANSMIT)
ST7565_BlitFullScreen();
}

View File

@@ -39,23 +39,16 @@ static void convertTime(uint8_t *line, uint8_t type) {
uint16_t t;
char str[7];
if(type == 0)
if(type == 0) // Tx timer
t = ((gEeprom.TX_TIMEOUT_TIMER + 1) * 5) - (gTxTimerCountdown_500ms / 2);
else
t = (7200 - gRxTimerCountdown_500ms) / 2;
else // Rx timer
t = 3600 - (gRxTimerCountdown_500ms / 2);
m = t / 60;
s = t - (m * 60);
sprintf(str, "%02d:%02d", m, s);
UI_PrintStringSmallBufferNormal(str, line + 0);
//GUI_DisplaySmallest(str, 2, 26, false, true);
/*
for (uint8_t i = 0; i < 27; i++)
{
gStatusLine[i] ^= 0x7F;
}
*/
gUpdateStatus = true;
}