File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -334,10 +334,6 @@ void Wippersnapper_FS::createSecretsFile() {
334334 secretsFile.flush ();
335335 secretsFile.close ();
336336
337- // Re-attach the USB device for file access
338- delay (500 );
339- initUSBMSC ();
340-
341337 writeToBootOut (
342338 " ERROR: Please edit the secrets.json file. Then, reset your board.\n " );
343339#ifdef USE_DISPLAY
@@ -347,6 +343,9 @@ void Wippersnapper_FS::createSecretsFile() {
347343 " Please edit it to reflect your Adafruit IO and network credentials. "
348344 " When you're done, press RESET on the board." );
349345#endif
346+ // Re-attach the USB device for file access
347+ delay (500 );
348+ initUSBMSC ();
350349 fsHalt (" ERROR: Please edit the secrets.json file. Then, reset your board." );
351350}
352351
You can’t perform that action at this time.
0 commit comments