From cbb91293450f893be80edd30a3dbe21566181af5 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Thu, 11 Jun 2009 14:54:41 -0700 Subject: [PATCH] fix error from change 3606 When I changed the definition of device_perform_action() in response to a reviewer comment, I forgot to change this implementation. --- default_recovery_ui.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/default_recovery_ui.c b/default_recovery_ui.c index 7bc5f2c..76fa43e 100644 --- a/default_recovery_ui.c +++ b/default_recovery_ui.c @@ -30,32 +30,32 @@ char* MENU_ITEMS[] = { "reboot system now", NULL }; int device_toggle_display(char* key_pressed, int key_code) { - return key_code == KEY_HOME; + return key_code == KEY_HOME; } int device_reboot_now(char* key_pressed, int key_code) { - return 0; + return 0; } int device_handle_key(int key_code, int visible) { - if (visible) { - switch (key_code) { - case KEY_DOWN: - case KEY_VOLUMEDOWN: - return HIGHLIGHT_DOWN; + if (visible) { + switch (key_code) { + case KEY_DOWN: + case KEY_VOLUMEDOWN: + return HIGHLIGHT_DOWN; - case KEY_UP: - case KEY_VOLUMEUP: - return HIGHLIGHT_UP; + case KEY_UP: + case KEY_VOLUMEUP: + return HIGHLIGHT_UP; - case KEY_ENTER: - return SELECT_ITEM; + case KEY_ENTER: + return SELECT_ITEM; + } } - } - return NO_ACTION; + return NO_ACTION; } -void device_perform_action(int which) { - // none defined +int device_perform_action(int which) { + return which; }