Fix compilation errors when UART is disabled

This commit is contained in:
Juan Antonio
2023-12-14 20:04:06 +01:00
committed by egzumer
parent 80fa310646
commit 9dc79ce868
7 changed files with 64 additions and 51 deletions

View File

@@ -143,13 +143,14 @@ void UI_DisplayLock(void)
gKeyReading0 = Key;
}
#ifdef ENABLE_UART
if (UART_IsCommandAvailable())
{
__disable_irq();
UART_HandleCommand();
__enable_irq();
}
#endif
if (gUpdateDisplay)
{
Render();