summaryrefslogtreecommitdiff
path: root/apps/plugins/rockbox_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockbox_flash.c')
-rw-r--r--apps/plugins/rockbox_flash.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/plugins/rockbox_flash.c b/apps/plugins/rockbox_flash.c
index deccb47bb9..8edfd017cc 100644
--- a/apps/plugins/rockbox_flash.c
+++ b/apps/plugins/rockbox_flash.c
@@ -893,6 +893,7 @@ void DoUserDialog(char* filename)
893 { 893 {
894 rb->lcd_puts_scroll(0, 0, "Hint: You're not using the latest bootloader. A full reflash is recommended, but not required."); 894 rb->lcd_puts_scroll(0, 0, "Hint: You're not using the latest bootloader. A full reflash is recommended, but not required.");
895 rb->lcd_puts_scroll(0, 1, "Press [Menu] to ignore"); 895 rb->lcd_puts_scroll(0, 1, "Press [Menu] to ignore");
896 rb->lcd_update();
896 897
897 if (WaitForButton() != BUTTON_MENU) 898 if (WaitForButton() != BUTTON_MENU)
898 { 899 {
@@ -902,6 +903,7 @@ void DoUserDialog(char* filename)
902 } 903 }
903 904
904 rb->lcd_puts(0, 0, "Checking..."); 905 rb->lcd_puts(0, 0, "Checking...");
906 rb->lcd_update();
905 907
906 space = FlashInfo.size - (pos-FB + sizeof(ImageHeader)); 908 space = FlashInfo.size - (pos-FB + sizeof(ImageHeader));
907 /* size minus start */ 909 /* size minus start */
@@ -941,6 +943,7 @@ void DoUserDialog(char* filename)
941 rb->lcd_puts_scroll(0, 1, "Check failed."); 943 rb->lcd_puts_scroll(0, 1, "Check failed.");
942 break; 944 break;
943 } 945 }
946 rb->lcd_update();
944 947
945 if (rc == eOK) 948 if (rc == eOK)
946 { /* was OK */ 949 { /* was OK */
@@ -955,6 +958,7 @@ void DoUserDialog(char* filename)
955 rb->lcd_puts_scroll(0, 0, "Flash failed."); 958 rb->lcd_puts_scroll(0, 0, "Flash failed.");
956 rb->lcd_puts_scroll(0, 1, "Any key to exit."); 959 rb->lcd_puts_scroll(0, 1, "Any key to exit.");
957 } 960 }
961 rb->lcd_update();
958 962
959 button = WaitForButton(); 963 button = WaitForButton();
960 if (rc != eOK || button != BUTTON_ON) 964 if (rc != eOK || button != BUTTON_ON)
@@ -972,6 +976,7 @@ void DoUserDialog(char* filename)
972 976
973 rb->lcd_clear_display(); 977 rb->lcd_clear_display();
974 rb->lcd_puts_scroll(0, 0, "Programming..."); 978 rb->lcd_puts_scroll(0, 0, "Programming...");
979 rb->lcd_update();
975 980
976 rc = ProgramImageFile(filename, pos, &ImageHeader, UCL_HEADER, true_size); 981 rc = ProgramImageFile(filename, pos, &ImageHeader, UCL_HEADER, true_size);
977 if (rc) 982 if (rc)
@@ -980,11 +985,13 @@ void DoUserDialog(char* filename)
980 rb->snprintf(buf, sizeof(buf), "%d errors", rc); 985 rb->snprintf(buf, sizeof(buf), "%d errors", rc);
981 rb->lcd_puts_scroll(0, 0, "Programming failed!"); 986 rb->lcd_puts_scroll(0, 0, "Programming failed!");
982 rb->lcd_puts_scroll(0, 1, buf); 987 rb->lcd_puts_scroll(0, 1, buf);
988 rb->lcd_update();
983 button = WaitForButton(); 989 button = WaitForButton();
984 } 990 }
985 991
986 rb->lcd_clear_display(); 992 rb->lcd_clear_display();
987 rb->lcd_puts_scroll(0, 0, "Verifying..."); 993 rb->lcd_puts_scroll(0, 0, "Verifying...");
994 rb->lcd_update();
988 995
989 rc = VerifyImageFile(filename, pos, &ImageHeader, UCL_HEADER, true_size); 996 rc = VerifyImageFile(filename, pos, &ImageHeader, UCL_HEADER, true_size);
990 997
@@ -992,12 +999,14 @@ void DoUserDialog(char* filename)
992 if (rc == 0) 999 if (rc == 0)
993 { 1000 {
994 rb->lcd_puts(0, 0, "Verify OK."); 1001 rb->lcd_puts(0, 0, "Verify OK.");
1002 rb->lcd_update();
995 } 1003 }
996 else 1004 else
997 { 1005 {
998 rb->snprintf(buf, sizeof(buf), "Verify fail! %d errors", rc); 1006 rb->snprintf(buf, sizeof(buf), "Verify fail! %d errors", rc);
999 rb->lcd_puts_scroll(0, 0, buf); 1007 rb->lcd_puts_scroll(0, 0, buf);
1000 rb->lcd_puts_scroll(0, 1, "Use safe image if booting hangs: [-] during power-on"); 1008 rb->lcd_puts_scroll(0, 1, "Use safe image if booting hangs: [-] during power-on");
1009 rb->lcd_update();
1001 button = WaitForButton(); 1010 button = WaitForButton();
1002 } 1011 }
1003} 1012}