From ade5d7b848bf9c0d46bb14c85528453f969c9429 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 26 Jul 2004 16:06:59 +0000 Subject: 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 --- apps/settings.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 31d9232851..83d69710df 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1362,10 +1362,10 @@ bool set_int(char* string, done = true; break; - case SYS_USB_CONNECTED: - usb_screen(); - return true; - + default: + if(default_event_handler(button) == SYS_USB_CONNECTED) + return true; + break; } if(*variable > max ) *variable = max; @@ -1492,9 +1492,10 @@ bool set_option(char* string, void* variable, enum optiontype type, done = true; break; - case SYS_USB_CONNECTED: - usb_screen(); - return true; + default: + if(default_event_handler(button) == SYS_USB_CONNECTED) + return true; + break; } if ( function && button != BUTTON_NONE) { -- cgit v1.2.3