We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d9218 commit af4f32eCopy full SHA for af4f32e
main.cpp
@@ -229,7 +229,7 @@ int main(void)
229
} else if (in_char == 'r') {
230
(void) fcc_storage_delete(); // When 'r' is pressed, erase storage and reboot the board.
231
printf("Storage erased, rebooting the device.\n\n");
232
- wait(1);
+ ThisThread::sleep_for(1*1000);
233
NVIC_SystemReset();
234
} else if (in_char > 0 && in_char != 0x03) { // Ctrl+C is 0x03 in Mbed OS and Linux returns negative number
235
value_increment(); // Simulate button press
0 commit comments