Minor code-policing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5005 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-08-21 23:29:55 +00:00
parent 792bd17a08
commit 4b8ee8dbb2

View file

@ -380,6 +380,8 @@ void digital_meter(void) {
} }
enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
int button;
TEST_PLUGIN_API(api); TEST_PLUGIN_API(api);
(void) parameter; (void) parameter;
rb = api; rb = api;
@ -400,7 +402,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
rb->lcd_update(); rb->lcd_update();
switch (rb->button_get_w_tmo(1)) button = rb->button_get_w_tmo(1);
switch (button)
{ {
case BUTTON_OFF: case BUTTON_OFF:
save_settings(); save_settings();
@ -430,9 +433,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
change_volume(-1); change_volume(-1);
break; break;
case SYS_USB_CONNECTED: default:
rb->usb_screen(); if(rb->default_event_handler(button) == SYS_USB_CONNECTED)
return PLUGIN_USB_CONNECTED; return PLUGIN_USB_CONNECTED;
break; break;
} }
} }