From 9e72a9353a42022d84936cabb80020cdb03f7760 Mon Sep 17 00:00:00 2001 From: wu58430 Date: Tue, 5 Dec 2023 08:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/uart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/uart.c b/app/uart.c index 005f54d..64b4991 100644 --- a/app/uart.c +++ b/app/uart.c @@ -516,8 +516,9 @@ bool UART_IsCommandAvailable(void) void UART_HandleCommand(void) { + volatile uint16_t CMD_ID=UART_Command.Header.ID; // UART_Send((uint8_t *)&UART_Command.Header.ID,2); - switch (UART_Command.Header.ID) + switch (CMD_ID) { case 0x0514: CMD_0514(UART_Command.Buffer);