8000 Merge pull request #5270 from pewpew-game/safe-mode-wait · domdfcoding/circuitpython@8067510 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 8067510

Browse files
authored
Merge pull request adafruit#5270 from pewpew-game/safe-mode-wait
Add a flag to skip waiting for safe mode
2 parents d314df8 + e4baefc commit 8067510

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

supervisor/shared/safe_mode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ safe_mode_t wait_for_safe_mode_reset(void) {
6666
reset_reason != RESET_REASON_SOFTWARE) {
6767
return NO_SAFE_MODE;
6868
}
69+
#ifdef CIRCUITPY_SKIP_SAFE_MODE_WAIT
70+
return NO_SAFE_MODE;
71+
#endif
6972
port_set_saved_word(SAFE_MODE_DATA_GUARD | (MANUAL_SAFE_MODE << 8));
7073
// Wait for a while to allow for reset.
7174

0 commit comments

Comments
 (0)
0