summaryrefslogtreecommitdiff
path: root/software/rda1846dongle/rda1846dongle.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-02-28 11:05:47 +0000
committerChristian Pointner <equinox@mur.at>2013-02-28 11:05:47 +0000
commit265c637021e50d8f4ff25eeb399017347470b048 (patch)
tree292550248c79597042930126614f692744066b5f /software/rda1846dongle/rda1846dongle.c
parentrda1846dongle: use ! for reset2bootloader (same as for hhd70dongle) (diff)
rda1846dongle: fixed output
git-svn-id: https://svn.spreadspace.org/mur.sat@690 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/rda1846dongle/rda1846dongle.c')
-rw-r--r--software/rda1846dongle/rda1846dongle.c9
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)