mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 22:35:12 +03:00
Reordering to force a display refresh
This commit is contained in:
parent
bef65d304b
commit
f3f7fc31b4
1 changed files with 19 additions and 19 deletions
|
@ -697,23 +697,6 @@ int main()
|
||||||
lcd_invert_line(2 + vpos);
|
lcd_invert_line(2 + vpos);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (state == ST_FLASH_CHECK) {
|
|
||||||
int result = menuFlashFile(vpos, event);
|
|
||||||
FirmwareSize = FileSize[vpos] - BOOTLOADER_SIZE;
|
|
||||||
if (result == 0) {
|
|
||||||
// canceled
|
|
||||||
state = ST_FILE_LIST;
|
|
||||||
}
|
|
||||||
else if (result == 1) {
|
|
||||||
// confirmed
|
|
||||||
firmwareAddress = FIRMWARE_ADDRESS + BOOTLOADER_SIZE;
|
|
||||||
firmwareWritten = 0;
|
|
||||||
eepromAddress = 0;
|
|
||||||
eepromWritten = 0;
|
|
||||||
state = ST_FLASHING;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (state == ST_FLASHING) {
|
if (state == ST_FLASHING) {
|
||||||
// commit to flashing
|
// commit to flashing
|
||||||
lcd_putsLeft(4*FH, "\032Writing...");
|
lcd_putsLeft(4*FH, "\032Writing...");
|
||||||
|
@ -747,7 +730,24 @@ int main()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == ST_FLASH_DONE) {
|
if (state == ST_FLASH_CHECK) {
|
||||||
|
int result = menuFlashFile(vpos, event);
|
||||||
|
FirmwareSize = FileSize[vpos] - BOOTLOADER_SIZE;
|
||||||
|
if (result == 0) {
|
||||||
|
// canceled
|
||||||
|
state = ST_FILE_LIST;
|
||||||
|
}
|
||||||
|
else if (result == 1) {
|
||||||
|
// confirmed
|
||||||
|
firmwareAddress = FIRMWARE_ADDRESS + BOOTLOADER_SIZE;
|
||||||
|
firmwareWritten = 0;
|
||||||
|
eepromAddress = 0;
|
||||||
|
eepromWritten = 0;
|
||||||
|
state = ST_FLASHING;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (state == ST_FLASH_DONE) {
|
||||||
lcd_putsLeft(4*FH, "\024Writing Complete");
|
lcd_putsLeft(4*FH, "\024Writing Complete");
|
||||||
if (event == EVT_KEY_FIRST(BOOT_KEY_EXIT) || event == EVT_KEY_BREAK(BOOT_KEY_MENU)) {
|
if (event == EVT_KEY_FIRST(BOOT_KEY_EXIT) || event == EVT_KEY_BREAK(BOOT_KEY_MENU)) {
|
||||||
state = ST_START;
|
state = ST_START;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue