summaryrefslogtreecommitdiff
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
parente51fc6d8da1175701f5958081a05deaa457d23e0 (diff)
downloadrockbox-d1af08f9cb347009f57b282b734ae5f5abd878da.tar.gz
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
-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)
217 217
218 snprintf(buf, 256, "Rockboot version 3"); 218 snprintf(buf, 256, "Rockboot version 3");
219 lcd_puts(0, line++, buf); 219 lcd_puts(0, line++, buf);
220 lcd_update();
220 221
221 sleep(HZ/50); /* Allow the button driver to check the buttons */ 222 sleep(HZ/50); /* Allow the button driver to check the buttons */
222 223
223 if(button_status() & BUTTON_REC || 224 if(((button_status() & BUTTON_REC) == BUTTON_REC) ||
224 button_status() & BUTTON_RC_REC) { 225 ((button_status() & BUTTON_RC_REC) == BUTTON_RC_REC)) {
225 lcd_puts(0, 8, "Starting original firmware..."); 226 lcd_puts(0, 8, "Starting original firmware...");
226 lcd_update(); 227 lcd_update();
227 start_iriver_fw(); 228 start_iriver_fw();