diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 15 |
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) { |