mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
Fix can't compile with UART off.
This commit is contained in:
parent
49cfd5a595
commit
7e4508436f
@ -1538,12 +1538,14 @@ void APP_time_slice_10ms(void)
|
|||||||
{
|
{
|
||||||
g_flash_light_blink_counter++;
|
g_flash_light_blink_counter++;
|
||||||
|
|
||||||
|
#ifdef ENABLE_UART
|
||||||
if (UART_IsCommandAvailable())
|
if (UART_IsCommandAvailable())
|
||||||
{
|
{
|
||||||
__disable_irq();
|
__disable_irq();
|
||||||
UART_HandleCommand();
|
UART_HandleCommand();
|
||||||
__enable_irq();
|
__enable_irq();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// ***********
|
// ***********
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user