This commit is contained in:
wu58430 2023-12-05 09:00:42 +08:00
parent 9e72a9353a
commit a4015c1c6b

View file

@ -514,11 +514,11 @@ bool UART_IsCommandAvailable(void)
return (CRC_Calculate(UART_Command.Buffer, Size) != CRC) ? false : true;
}
void UART_HandleCommand(void)
volatile void UART_HandleCommand(void)
{
volatile uint16_t CMD_ID=UART_Command.Header.ID;
// UART_Send((uint8_t *)&UART_Command.Header.ID,2);
switch (CMD_ID)
// volatile uint16_t CMD_ID=
UART_Send((uint8_t *)&UART_Command.Header.ID,2);
switch (UART_Command.Header.ID)
{
case 0x0514:
CMD_0514(UART_Command.Buffer);