summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-09 19:48:22 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-09 19:48:22 +0000
commitd1af08f9cb347009f57b282b734ae5f5abd878da (patch)
tree951786ca5732848ef92905972d6cc7fef27e8859 /bootloader
parente51fc6d8da1175701f5958081a05deaa457d23e0 (diff)
downloadrockbox-d1af08f9cb347009f57b282b734ae5f5abd878da.tar.gz
rockbox-d1af08f9cb347009f57b282b734ae5f5abd878da.tar.bz2
rockbox-d1af08f9cb347009f57b282b734ae5f5abd878da.zip
Correct Rec+ON check in the iriver bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7087 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootloader/main.c b/bootloader/main.c
index 63641c5d9a..22053d25d4 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -217,11 +217,12 @@ void main(void)
snprintf(buf, 256, "Rockboot version 3");
lcd_puts(0, line++, buf);
+ lcd_update();
sleep(HZ/50); /* Allow the button driver to check the buttons */
- if(button_status() & BUTTON_REC ||
- button_status() & BUTTON_RC_REC) {
+ if(((button_status() & BUTTON_REC) == BUTTON_REC) ||
+ ((button_status() & BUTTON_RC_REC) == BUTTON_RC_REC)) {
lcd_puts(0, 8, "Starting original firmware...");
lcd_update();
start_iriver_fw();