Skip to content

Commit 68e7fa2

Browse files
committed
Perform a check of the nina fw version before performing flash update.
1 parent c5033b3 commit 68e7fa2

File tree

4 files changed

+1468
-1311
lines changed

4 files changed

+1468
-1311
lines changed

libraries/SNU/extras/NiNaBoot/NiNaBoot.ino

+7
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,17 @@ int main() {
138138
digitalWrite(NINA_RESETN, HIGH);
139139
#endif
140140

141+
String nina_fw_version;
142+
141143
if (WiFi.status() == WL_NO_SHIELD) {
142144
goto boot;
143145
}
144146

147+
nina_fw_version = WiFi.firmwareVersion();
148+
if (nina_fw_version < "1.4.1") {
149+
goto boot;
150+
}
151+
145152
/* For UPDATE.BIN.LZSS - LZSS compressed binary files. */
146153
if (WiFiStorage.exists(UPDATE_FILE_NAME_LZSS))
147154
{

0 commit comments

Comments
 (0)