diff options
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r-- | apps/plugins/firmware_flash.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 1fc6b07a89..073667e73f 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c | |||
@@ -647,21 +647,21 @@ void DoUserDialog(char* filename) | |||
647 | /* this can only work if Rockbox runs in DRAM, not flash ROM */ | 647 | /* this can only work if Rockbox runs in DRAM, not flash ROM */ |
648 | if ((UINT8*)rb >= FB && (UINT8*)rb < FB + 4096*1024) /* 4 MB max */ | 648 | if ((UINT8*)rb >= FB && (UINT8*)rb < FB + 4096*1024) /* 4 MB max */ |
649 | { /* we're running from flash */ | 649 | { /* we're running from flash */ |
650 | rb->splash(HZ*3, true, "Not from ROM"); | 650 | rb->splash(HZ*3, "Not from ROM"); |
651 | return; /* exit */ | 651 | return; /* exit */ |
652 | } | 652 | } |
653 | 653 | ||
654 | /* test if the user is running the correct plugin for this box */ | 654 | /* test if the user is running the correct plugin for this box */ |
655 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) | 655 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) |
656 | { | 656 | { |
657 | rb->splash(HZ*3, true, "Wrong plugin"); | 657 | rb->splash(HZ*3, "Wrong plugin"); |
658 | return; /* exit */ | 658 | return; /* exit */ |
659 | } | 659 | } |
660 | 660 | ||
661 | /* refuse to work if the power may fail meanwhile */ | 661 | /* refuse to work if the power may fail meanwhile */ |
662 | if (!rb->battery_level_safe()) | 662 | if (!rb->battery_level_safe()) |
663 | { | 663 | { |
664 | rb->splash(HZ*3, true, "Battery too low!"); | 664 | rb->splash(HZ*3, "Battery too low!"); |
665 | return; /* exit */ | 665 | return; /* exit */ |
666 | } | 666 | } |
667 | 667 | ||
@@ -669,7 +669,7 @@ void DoUserDialog(char* filename) | |||
669 | result = CheckBootROM(); | 669 | result = CheckBootROM(); |
670 | if (result == eUnknown) | 670 | if (result == eUnknown) |
671 | { /* no support for any other yet */ | 671 | { /* no support for any other yet */ |
672 | rb->splash(HZ*3, true, "Wrong boot ROM"); | 672 | rb->splash(HZ*3, "Wrong boot ROM"); |
673 | return; /* exit */ | 673 | return; /* exit */ |
674 | } | 674 | } |
675 | is_romless = (result == eROMless); | 675 | is_romless = (result == eROMless); |
@@ -690,7 +690,7 @@ void DoUserDialog(char* filename) | |||
690 | sector = rb->plugin_get_buffer(&memleft); | 690 | sector = rb->plugin_get_buffer(&memleft); |
691 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ | 691 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ |
692 | { | 692 | { |
693 | rb->splash(HZ*3, true, "Out of memory"); | 693 | rb->splash(HZ*3, "Out of memory"); |
694 | return; /* exit */ | 694 | return; /* exit */ |
695 | } | 695 | } |
696 | 696 | ||
@@ -700,7 +700,7 @@ void DoUserDialog(char* filename) | |||
700 | ShowFlashInfo(&FlashInfo); | 700 | ShowFlashInfo(&FlashInfo); |
701 | if (FlashInfo.size == 0) /* no valid chip */ | 701 | if (FlashInfo.size == 0) /* no valid chip */ |
702 | { | 702 | { |
703 | rb->splash(HZ*3, true, "Sorry!"); | 703 | rb->splash(HZ*3, "Sorry!"); |
704 | return; /* exit */ | 704 | return; /* exit */ |
705 | } | 705 | } |
706 | 706 | ||
@@ -884,21 +884,21 @@ void DoUserDialog(char* filename) | |||
884 | /* this can only work if Rockbox runs in DRAM, not flash ROM */ | 884 | /* this can only work if Rockbox runs in DRAM, not flash ROM */ |
885 | if ((UINT8*)rb >= FB && (UINT8*)rb < FB + 4096*1024) /* 4 MB max */ | 885 | if ((UINT8*)rb >= FB && (UINT8*)rb < FB + 4096*1024) /* 4 MB max */ |
886 | { /* we're running from flash */ | 886 | { /* we're running from flash */ |
887 | rb->splash(HZ*3, true, "Not from ROM"); | 887 | rb->splash(HZ*3, "Not from ROM"); |
888 | return; /* exit */ | 888 | return; /* exit */ |
889 | } | 889 | } |
890 | 890 | ||
891 | /* test if the user is running the correct plugin for this box */ | 891 | /* test if the user is running the correct plugin for this box */ |
892 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) | 892 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) |
893 | { | 893 | { |
894 | rb->splash(HZ*3, true, "Wrong version"); | 894 | rb->splash(HZ*3, "Wrong version"); |
895 | return; /* exit */ | 895 | return; /* exit */ |
896 | } | 896 | } |
897 | 897 | ||
898 | /* refuse to work if the power may fail meanwhile */ | 898 | /* refuse to work if the power may fail meanwhile */ |
899 | if (!rb->battery_level_safe()) | 899 | if (!rb->battery_level_safe()) |
900 | { | 900 | { |
901 | rb->splash(HZ*3, true, "Batt. too low!"); | 901 | rb->splash(HZ*3, "Batt. too low!"); |
902 | return; /* exit */ | 902 | return; /* exit */ |
903 | } | 903 | } |
904 | 904 | ||
@@ -906,7 +906,7 @@ void DoUserDialog(char* filename) | |||
906 | result = CheckBootROM(); | 906 | result = CheckBootROM(); |
907 | if (result == eUnknown) | 907 | if (result == eUnknown) |
908 | { /* no support for any other yet */ | 908 | { /* no support for any other yet */ |
909 | rb->splash(HZ*3, true, "Wrong boot ROM"); | 909 | rb->splash(HZ*3, "Wrong boot ROM"); |
910 | return; /* exit */ | 910 | return; /* exit */ |
911 | } | 911 | } |
912 | is_romless = (result == eROMless); | 912 | is_romless = (result == eROMless); |
@@ -927,7 +927,7 @@ void DoUserDialog(char* filename) | |||
927 | sector = rb->plugin_get_buffer(&memleft); | 927 | sector = rb->plugin_get_buffer(&memleft); |
928 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ | 928 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ |
929 | { | 929 | { |
930 | rb->splash(HZ*3, true, "Out of memory"); | 930 | rb->splash(HZ*3, "Out of memory"); |
931 | return; /* exit */ | 931 | return; /* exit */ |
932 | } | 932 | } |
933 | 933 | ||