From 85a771383e2ec91a598dfc8d8421af0a7ccb8b0e Mon Sep 17 00:00:00 2001 From: wu58430 Date: Tue, 5 Dec 2023 09:23:27 +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/app.c | 5 ++++- app/uart.c | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/app.c b/app/app.c index f0c6214..733d8bf 100644 --- a/app/app.c +++ b/app/app.c @@ -1182,9 +1182,12 @@ void APP_TimeSlice10ms(void) if (gRxVfo->Modulation == MODULATION_AM && gSetting_AM_fix) AM_fix_10ms(gEeprom.RX_VFO); #endif - + char a[2]="SB"; + UART_Send((uint8_t *)&a,2); if (UART_IsCommandAvailable()) { + char a[2]="OK"; + UART_Send((uint8_t *)&a,2); __disable_irq(); UART_HandleCommand(); __enable_irq(); diff --git a/app/uart.c b/app/uart.c index adceba5..c6cbf9a 100644 --- a/app/uart.c +++ b/app/uart.c @@ -517,8 +517,7 @@ bool UART_IsCommandAvailable(void) void UART_HandleCommand(void) { // volatile uint16_t CMD_ID= -char a[2]="OK"; - UART_Send((uint8_t *)&a,2); + switch (UART_Command.Header.ID) { case 0x0514: