Flash only unlocked when needed

This commit is contained in:
Andre Bernet
2014-04-11 11:18:58 +02:00
parent d442fa77e0
commit ac1dbf81f4
5 changed files with 25 additions and 2 deletions
+5
View File
@@ -773,6 +773,11 @@ void flashBootloader(const char * filename)
}
}
if (unlocked) {
lockFlash();
unlocked = 0;
}
f_close(&file);
}
#endif