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);