Flash only unlocked when needed
This commit is contained in:
@@ -773,6 +773,11 @@ void flashBootloader(const char * filename)
|
||||
}
|
||||
}
|
||||
|
||||
if (unlocked) {
|
||||
lockFlash();
|
||||
unlocked = 0;
|
||||
}
|
||||
|
||||
f_close(&file);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user