Skip to content

Commit f454535

Browse files
committed
Change _freshFS to self reboot
1 parent b18fcf8 commit f454535

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/provisioning/tinyusb/Wippersnapper_FS.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,15 @@ Wippersnapper_FS::Wippersnapper_FS() {
125125

126126
// If we created a new filesystem, halt until user RESETs device.
127127
if (_freshFS)
128-
fsHalt("New filesystem created! Press the reset button on your board."); // TODO: just reset here after printing message then a delay/countdown.
128+
{
129+
WS_DEBUG_PRINTLN("New filesystem created! Resetting the board shortly...");
130+
WS_PRINTER.flush();
131+
WS.enableWDT(500);
132+
while (1)
133+
{
134+
delay(1000);
135+
}
136+
}
129137
}
130138

131139
/************************************************************/

0 commit comments

Comments
 (0)