summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 16:06:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 16:06:59 +0000
commitade5d7b848bf9c0d46bb14c85528453f969c9429 (patch)
tree197aa919b9a3c2a89f77d12b01cc1c2c23f7e37f /apps/settings.c
parent3d91885718a1fb9d6d55f07f67a9a1942a352c5e (diff)
downloadrockbox-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/settings.c')
-rw-r--r--apps/settings.c15
1 files changed, 8 insertions, 7 deletions
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,
1362 done = true; 1362 done = true;
1363 break; 1363 break;
1364 1364
1365 case SYS_USB_CONNECTED: 1365 default:
1366 usb_screen(); 1366 if(default_event_handler(button) == SYS_USB_CONNECTED)
1367 return true; 1367 return true;
1368 1368 break;
1369 } 1369 }
1370 if(*variable > max ) 1370 if(*variable > max )
1371 *variable = max; 1371 *variable = max;
@@ -1492,9 +1492,10 @@ bool set_option(char* string, void* variable, enum optiontype type,
1492 done = true; 1492 done = true;
1493 break; 1493 break;
1494 1494
1495 case SYS_USB_CONNECTED: 1495 default:
1496 usb_screen(); 1496 if(default_event_handler(button) == SYS_USB_CONNECTED)
1497 return true; 1497 return true;
1498 break;
1498 } 1499 }
1499 1500
1500 if ( function && button != BUTTON_NONE) { 1501 if ( function && button != BUTTON_NONE) {