From 994bc3665b9de8ae33f5f5d24ad7f2b4a7d0dfa8 Mon Sep 17 00:00:00 2001 From: wu58430 Date: Tue, 5 Dec 2023 09:01:12 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/uart.c b/app/uart.c index f1e516c..02417b2 100644 --- a/app/uart.c +++ b/app/uart.c @@ -514,10 +514,10 @@ bool UART_IsCommandAvailable(void) return (CRC_Calculate(UART_Command.Buffer, Size) != CRC) ? false : true; } -volatile void UART_HandleCommand(void) + void UART_HandleCommand(void) { // volatile uint16_t CMD_ID= - UART_Send((uint8_t *)&UART_Command.Header.ID,1); + UART_Send((uint8_t *)&UART_Command.Header.ID,2); switch (UART_Command.Header.ID) { case 0x0514: