mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix serial commands handling
This commit is contained in:
1 parent
aa5f7c0092
commit
6d4324ef16
4 files changed
+50
-13
No files matched your search
+5
-2
@@ -39,6 +39,7 @@
|
||||
#include "app/scanner.h"
|
||||
#ifdef ENABLE_UART
|
||||
#include "app/uart.h"
|
||||
#include "scheduler.h"
|
||||
#endif
|
||||
#include "py32f0xx.h"
|
||||
#include "audio.h"
|
||||
@@ -1364,9 +1365,11 @@ void APP_TimeSlice10ms(void)
|
||||
|
||||
#ifdef ENABLE_UART
|
||||
if (UART_IsCommandAvailable()) {
|
||||
__disable_irq();
|
||||
// __disable_irq();
|
||||
SCHEDULER_Disable();
|
||||
UART_HandleCommand();
|
||||
__enable_irq();
|
||||
// __enable_irq();
|
||||
SCHEDULER_Enable();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user