Skip to content

Commit 2409c85

Browse files
committed
Address feedback
1 parent 0a3e822 commit 2409c85

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/provisioning/tinyusb/Wippersnapper_FS.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)