diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/screens.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c index 634d5cf8d1..d01d2acb41 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -300,6 +300,11 @@ void charging_display_info(bool animate) | |||
300 | 2 if Off/Stop key was pressed | 300 | 2 if Off/Stop key was pressed |
301 | 3 if On key was pressed | 301 | 3 if On key was pressed |
302 | 4 if USB was connected */ | 302 | 4 if USB was connected */ |
303 | #if (CONFIG_KEYPAD==IPOD_3G_PAD) || (CONFIG_KEYPAD==IPOD_4G_PAD) | ||
304 | # define CHARGE_SCREEN_RESUME BUTTON_SELECT | ||
305 | #else | ||
306 | # define CHARGE_SCREEN_RESUME BUTTON_ON | ||
307 | #endif | ||
303 | int charging_screen(void) | 308 | int charging_screen(void) |
304 | { | 309 | { |
305 | unsigned int button; | 310 | unsigned int button; |
@@ -325,7 +330,7 @@ int charging_screen(void) | |||
325 | gui_syncstatusbar_draw(&statusbars, false); | 330 | gui_syncstatusbar_draw(&statusbars, false); |
326 | charging_display_info(true); | 331 | charging_display_info(true); |
327 | button = button_get_w_tmo(HZ/3); | 332 | button = button_get_w_tmo(HZ/3); |
328 | if (button == BUTTON_ON) | 333 | if (button == CHARGE_SCREEN_RESUME) |
329 | rc = 2; | 334 | rc = 2; |
330 | else if (usb_detect()) | 335 | else if (usb_detect()) |
331 | rc = 3; | 336 | rc = 3; |