diff options
-rw-r--r-- | apps/main.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c index cf7d302fc9..edeeed7d8a 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -141,7 +141,7 @@ | |||
141 | #if defined(WIN32) | 141 | #if defined(WIN32) |
142 | #undef main | 142 | #undef main |
143 | #endif | 143 | #endif |
144 | #endif | 144 | #endif /* SDL|MAEMO|PAMDORA */ |
145 | 145 | ||
146 | /*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */ | 146 | /*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */ |
147 | 147 | ||
@@ -432,7 +432,7 @@ static void init(void) | |||
432 | #endif | 432 | #endif |
433 | } | 433 | } |
434 | 434 | ||
435 | #else /* CONFIG_PLATFORM & PLATFORM_HOSTED */ | 435 | #else /* ! (CONFIG_PLATFORM & PLATFORM_HOSTED) */ |
436 | 436 | ||
437 | #include "errno.h" | 437 | #include "errno.h" |
438 | 438 | ||
@@ -551,7 +551,7 @@ static void init(void) | |||
551 | { | 551 | { |
552 | lcd_clear_display(); | 552 | lcd_clear_display(); |
553 | lcd_putsf(0, 1, "ATA error: %d", rc); | 553 | lcd_putsf(0, 1, "ATA error: %d", rc); |
554 | lcd_puts(0, 3, "Press ON to debug"); | 554 | lcd_puts(0, 3, "Press button to debug"); |
555 | lcd_update(); | 555 | lcd_update(); |
556 | while(!(button_get(true) & BUTTON_REL)); /* DO NOT CHANGE TO ACTION SYSTEM */ | 556 | while(!(button_get(true) & BUTTON_REL)); /* DO NOT CHANGE TO ACTION SYSTEM */ |
557 | dbg_ports(); | 557 | dbg_ports(); |
@@ -605,13 +605,24 @@ static void init(void) | |||
605 | lcd_clear_display(); | 605 | lcd_clear_display(); |
606 | lcd_puts(0, 0, "No partition"); | 606 | lcd_puts(0, 0, "No partition"); |
607 | lcd_puts(0, 1, "found."); | 607 | lcd_puts(0, 1, "found."); |
608 | #ifndef USB_NONE | ||
608 | lcd_puts(0, 2, "Insert USB cable"); | 609 | lcd_puts(0, 2, "Insert USB cable"); |
609 | lcd_puts(0, 3, "and fix it."); | 610 | lcd_puts(0, 3, "and fix it."); |
611 | #elif !defined(DEBUG) | ||
612 | lcd_puts(0, 2, "Rebooting in 5s"); | ||
613 | #endif | ||
610 | lcd_update(); | 614 | lcd_update(); |
611 | 615 | ||
616 | #ifndef USB_NONE | ||
617 | usb_start_monitoring(); | ||
612 | while(button_get(true) != SYS_USB_CONNECTED) {}; | 618 | while(button_get(true) != SYS_USB_CONNECTED) {}; |
613 | gui_usb_screen_run(true); | 619 | gui_usb_screen_run(true); |
620 | #else | ||
621 | sleep(HZ*5); | ||
622 | #endif | ||
623 | #if !defined(DEBUG) | ||
614 | system_reboot(); | 624 | system_reboot(); |
625 | #endif | ||
615 | } | 626 | } |
616 | } | 627 | } |
617 | 628 | ||