File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ Wippersnapper_FS::Wippersnapper_FS() {
127
127
if (_freshFS)
128
128
{
129
129
WS_DEBUG_PRINTLN (" New filesystem created! Resetting the board shortly..." );
130
- WS_PRINTER.flush ();
131
130
WS.enableWDT (500 );
132
131
while (1 )
133
132
{
@@ -387,8 +386,6 @@ void Wippersnapper_FS::createSecretsFile() {
387
386
// Flush and close file
388
387
secretsFile.flush ();
389
388
secretsFile.close ();
390
- delay (2500 );
391
- initUSBMSC (); // re-init USB MSC to show new file to user for editing
392
389
393
390
// Signal to user that action must be taken (edit secrets.json)
394
391
writeToBootOut (
@@ -400,6 +397,8 @@ void Wippersnapper_FS::createSecretsFile() {
400
397
" Please edit it to reflect your Adafruit IO and network credentials. "
401
398
" When you're done, press RESET on the board." );
402
399
#endif
400
+ delay (500 ); // previously 2500
401
+ initUSBMSC (); // re-init USB MSC to show new file to user for editing
403
402
fsHalt (" ERROR: Please edit the secrets.json file. Then, reset your board." );
404
403
}
405
404
You can’t perform that action at this time.
0 commit comments