mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Flash only unlocked when needed
This commit is contained in:
parent
d442fa77e0
commit
ac1dbf81f4
5 changed files with 25 additions and 2 deletions
|
@ -773,6 +773,11 @@ void flashBootloader(const char * filename)
|
|||
}
|
||||
}
|
||||
|
||||
if (unlocked) {
|
||||
lockFlash();
|
||||
unlocked = 0;
|
||||
}
|
||||
|
||||
f_close(&file);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue