1
0
Fork 0
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:
Andre Bernet 2014-04-11 00:49:32 +02:00
parent da23a6cf6c
commit 10f16583e0

View file

@ -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;