diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-26 16:06:59 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-26 16:06:59 +0000 |
commit | ade5d7b848bf9c0d46bb14c85528453f969c9429 (patch) | |
tree | 197aa919b9a3c2a89f77d12b01cc1c2c23f7e37f /apps/recorder/radio.c | |
parent | 3d91885718a1fb9d6d55f07f67a9a1942a352c5e (diff) | |
download | rockbox-ade5d7b848bf9c0d46bb14c85528453f969c9429.tar.gz rockbox-ade5d7b848bf9c0d46bb14c85528453f969c9429.zip |
First step in revamping the USB event handling, paving the way for the upcoming SYS_POWER_OFF event
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 36847236e1..e26ac5bdc8 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -416,13 +416,17 @@ bool radio_screen(void) | |||
416 | /* Only accept USB connection when not recording */ | 416 | /* Only accept USB connection when not recording */ |
417 | if(mpeg_status() != MPEG_STATUS_RECORD) | 417 | if(mpeg_status() != MPEG_STATUS_RECORD) |
418 | { | 418 | { |
419 | usb_screen(); | 419 | default_event_handler(SYS_USB_CONNECTED); |
420 | fmradio_set_status(0); | 420 | fmradio_set_status(0); |
421 | screen_freeze = true; /* Cosmetic: makes sure the | 421 | screen_freeze = true; /* Cosmetic: makes sure the |
422 | radio screen doesn't redraw */ | 422 | radio screen doesn't redraw */ |
423 | done = true; | 423 | done = true; |
424 | } | 424 | } |
425 | break; | 425 | break; |
426 | |||
427 | default: | ||
428 | default_event_handler(button); | ||
429 | break; | ||
426 | } | 430 | } |
427 | 431 | ||
428 | peak_meter_peek(); | 432 | peak_meter_peek(); |