This commit is contained in:
wu58430 2023-12-05 09:23:27 +08:00
parent 108638169a
commit 85a771383e
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -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: