diff options
Diffstat (limited to 'software/rda1846dongle')
-rw-r--r-- | software/rda1846dongle/rda1846dongle.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/software/rda1846dongle/rda1846dongle.c b/software/rda1846dongle/rda1846dongle.c index b155dd8..8a011b7 100644 --- a/software/rda1846dongle/rda1846dongle.c +++ b/software/rda1846dongle/rda1846dongle.c @@ -71,16 +71,15 @@ static void update_current_freq(void) static void handle_cmd(uint8_t cmd) { switch(cmd) { - case '0': led_off(); break; - case '1': led_on(); break; - case 't': led_toggle(); break; + case '0': led_off(); printf("ok\r\n"); break; + case '1': led_on(); printf("ok\r\n"); break; + case 't': led_toggle(); printf("ok\r\n"); break; case '!': reset2bootloader(); break; case 'f': print_actual_freq(); break; case '+': current_freq_kHz+=500; update_current_freq(); break; case '-': current_freq_kHz-=500; update_current_freq(); break; - default: printf("error\r\n"); return; + default: printf("ERROR: unknown command\r\n"); return; } - printf("ok\r\n"); } int main(void) |