File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ bool firmware_available = false;
253
253
#include " resources.h"
254
254
255
255
void wiced_filesystem_mount_error (void ) {
256
+ while (!Serial) {}
256
257
Serial.println (" Failed to mount the filesystem containing the WiFi firmware." );
257
258
Serial.println (" Usually that means that the WiFi firmware has not been installed yet"
258
259
" or was overwritten with another firmware." );
@@ -261,6 +262,7 @@ void wiced_filesystem_mount_error(void) {
261
262
}
262
263
263
264
void wiced_filesystem_firmware_error (void ) {
265
+ while (!Serial) {}
264
266
Serial.println (" Please run the \" WiFiFirmwareUpdater\" sketch once to install the WiFi firmware." );
265
267
whd_print_logbuffer ();
266
268
while (1 ) {}
@@ -283,7 +285,7 @@ wiced_result_t whd_firmware_check_hook(const char* mounted_name, int mount_err)
283
285
return WICED_SUCCESS;
284
286
}
285
287
}
286
- Serial.println (" File not found" );
288
+ if ( Serial) { Serial .println (" File not found\n " ); }
287
289
closedir (dir);
288
290
}
289
291
wiced_filesystem_firmware_error ();
You can’t perform that action at this time.
0 commit comments