mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
In "Write Firmware", as long as a valid file was selected once, canceling then selecting an invalid file would pass the valididty check.
Fixes it, but not sure why it is required as we're supposed to overwrite the buffer each time we load a file for flashing - there might be a better fix.
This commit is contained in:
parent
da23a6cf6c
commit
10f16583e0
1 changed files with 1 additions and 0 deletions
|
@ -664,6 +664,7 @@ int main()
|
|||
// Select file to flash
|
||||
state = ST_FLASH_CHECK;
|
||||
Valid = 0;
|
||||
memset(Block_buffer, 0, sizeof(Block_buffer));
|
||||
}
|
||||
else if (event == EVT_KEY_FIRST(BOOT_KEY_EXIT)) {
|
||||
state = ST_START;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue