diff --git a/main/ble_hidd_demo_main.c b/main/ble_hidd_demo_main.c index 3a79070..88146d4 100644 --- a/main/ble_hidd_demo_main.c +++ b/main/ble_hidd_demo_main.c @@ -1126,6 +1126,7 @@ void uart_console_task(void *pvParameters) if(hid_or_command == 1) { uart_parse_command(character,&commands); + if(commands.state == CMDSTATE_IDLE) hid_or_command = 0; continue; }