summaryrefslogtreecommitdiff
path: root/apps/plugins/firmware_flash.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
commitf9b90e91031dbd23fed24e832de4d8d2e15151a0 (patch)
tree964a492f1c4a658ec0ecb82d100ce62d2f6ec93a /apps/plugins/firmware_flash.c
parenta5d7309d96cca974e1524dc746482ab2a26d7395 (diff)
downloadrockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.tar.gz
rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.zip
Now charcell displays require lcd_update() for updating the main lcd content like bitmap displays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r--apps/plugins/firmware_flash.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c
index 073667e73f..a0fac4258e 100644
--- a/apps/plugins/firmware_flash.c
+++ b/apps/plugins/firmware_flash.c
@@ -848,6 +848,7 @@ void ShowFlashInfo(tFlashInfo* pInfo)
848 { 848 {
849 rb->lcd_puts_scroll(0, 0, "Flash: M=? D=?"); 849 rb->lcd_puts_scroll(0, 0, "Flash: M=? D=?");
850 rb->lcd_puts_scroll(0, 1, "Impossible to program"); 850 rb->lcd_puts_scroll(0, 1, "Impossible to program");
851 rb->lcd_update();
851 WaitForButton(); 852 WaitForButton();
852 } 853 }
853 else 854 else
@@ -860,10 +861,12 @@ void ShowFlashInfo(tFlashInfo* pInfo)
860 { 861 {
861 rb->snprintf(buf, sizeof(buf), "Size: %d KB", pInfo->size / 1024); 862 rb->snprintf(buf, sizeof(buf), "Size: %d KB", pInfo->size / 1024);
862 rb->lcd_puts_scroll(0, 1, buf); 863 rb->lcd_puts_scroll(0, 1, buf);
864 rb->lcd_update();
863 } 865 }
864 else 866 else
865 { 867 {
866 rb->lcd_puts_scroll(0, 1, "Unsupported chip"); 868 rb->lcd_puts_scroll(0, 1, "Unsupported chip");
869 rb->lcd_update();
867 WaitForButton(); 870 WaitForButton();
868 } 871 }
869 } 872 }
@@ -941,7 +944,8 @@ void DoUserDialog(char* filename)
941 944
942 rb->lcd_puts_scroll(0, 0, filename); 945 rb->lcd_puts_scroll(0, 0, filename);
943 rb->lcd_puts_scroll(0, 1, "[Menu] to check"); 946 rb->lcd_puts_scroll(0, 1, "[Menu] to check");
944 947 rb->lcd_update();
948
945 button = WaitForButton(); 949 button = WaitForButton();
946 if (button != BUTTON_MENU) 950 if (button != BUTTON_MENU)
947 { 951 {
@@ -950,7 +954,8 @@ void DoUserDialog(char* filename)
950 954
951 rb->lcd_clear_display(); 955 rb->lcd_clear_display();
952 rb->lcd_puts(0, 0, "Checking..."); 956 rb->lcd_puts(0, 0, "Checking...");
953 957 rb->lcd_update();
958
954 rc = CheckFirmwareFile(filename, FlashInfo.size, is_romless); 959 rc = CheckFirmwareFile(filename, FlashInfo.size, is_romless);
955 rb->lcd_puts(0, 0, "Checked:"); 960 rb->lcd_puts(0, 0, "Checked:");
956 switch (rc) 961 switch (rc)
@@ -989,6 +994,7 @@ void DoUserDialog(char* filename)
989 rb->lcd_puts_scroll(0, 0, "Check failed."); 994 rb->lcd_puts_scroll(0, 0, "Check failed.");
990 break; 995 break;
991 } 996 }
997 rb->lcd_update();
992 998
993 rb->sleep(HZ*3); 999 rb->sleep(HZ*3);
994 1000
@@ -996,6 +1002,7 @@ void DoUserDialog(char* filename)
996 { 1002 {
997 rb->lcd_puts_scroll(0, 0, "[On] to program,"); 1003 rb->lcd_puts_scroll(0, 0, "[On] to program,");
998 rb->lcd_puts_scroll(0, 1, "other key to exit."); 1004 rb->lcd_puts_scroll(0, 1, "other key to exit.");
1005 rb->lcd_update();
999 } 1006 }
1000 else 1007 else
1001 { /* error occured */ 1008 { /* error occured */
@@ -1012,7 +1019,8 @@ void DoUserDialog(char* filename)
1012 rb->lcd_clear_display(); 1019 rb->lcd_clear_display();
1013 rb->lcd_puts_scroll(0, 0, "Are you sure?"); 1020 rb->lcd_puts_scroll(0, 0, "Are you sure?");
1014 rb->lcd_puts_scroll(0, 1, "[+] to proceed."); 1021 rb->lcd_puts_scroll(0, 1, "[+] to proceed.");
1015 1022 rb->lcd_update();
1023
1016 button = WaitForButton(); 1024 button = WaitForButton();
1017 1025
1018 if (button != BUTTON_RIGHT) 1026 if (button != BUTTON_RIGHT)
@@ -1022,7 +1030,8 @@ void DoUserDialog(char* filename)
1022 1030
1023 rb->lcd_clear_display(); 1031 rb->lcd_clear_display();
1024 rb->lcd_puts_scroll(0, 0, "Programming..."); 1032 rb->lcd_puts_scroll(0, 0, "Programming...");
1025 1033 rb->lcd_update();
1034
1026 rc = ProgramFirmwareFile(filename, FlashInfo.size); 1035 rc = ProgramFirmwareFile(filename, FlashInfo.size);
1027 1036
1028 if (rc) 1037 if (rc)
@@ -1031,12 +1040,14 @@ void DoUserDialog(char* filename)
1031 rb->lcd_puts_scroll(0, 0, "Programming failed!"); 1040 rb->lcd_puts_scroll(0, 0, "Programming failed!");
1032 rb->snprintf(buf, sizeof(buf), "%d errors", rc); 1041 rb->snprintf(buf, sizeof(buf), "%d errors", rc);
1033 rb->lcd_puts_scroll(0, 1, buf); 1042 rb->lcd_puts_scroll(0, 1, buf);
1043 rb->lcd_update();
1034 WaitForButton(); 1044 WaitForButton();
1035 } 1045 }
1036 1046
1037 rb->lcd_clear_display(); 1047 rb->lcd_clear_display();
1038 rb->lcd_puts_scroll(0, 0, "Verifying..."); 1048 rb->lcd_puts_scroll(0, 0, "Verifying...");
1039 1049 rb->lcd_update();
1050
1040 rc = VerifyFirmwareFile(filename); 1051 rc = VerifyFirmwareFile(filename);
1041 1052
1042 rb->lcd_clear_display(); 1053 rb->lcd_clear_display();
@@ -1052,6 +1063,7 @@ void DoUserDialog(char* filename)
1052 } 1063 }
1053 1064
1054 rb->lcd_puts_scroll(0, 1, "Press any key to exit."); 1065 rb->lcd_puts_scroll(0, 1, "Press any key to exit.");
1066 rb->lcd_update();
1055 WaitForButton(); 1067 WaitForButton();
1056} 1068}
1057 1069