Skip to content

Commit 7441625

Browse files
committed
allow the safe mode danse if RESET_REASON_UNKNOWN
1 parent 1b3bca1 commit 7441625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

supervisor/shared/safe_mode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ safe_mode_t wait_for_safe_mode_reset(void) {
5959

6060
const mcu_reset_reason_t reset_reason = common_hal_mcu_processor_get_reset_reason();
6161
if (reset_reason != RESET_REASON_POWER_ON &&
62-
reset_reason != RESET_REASON_RESET_PIN) {
62+
reset_reason != RESET_REASON_RESET_PIN &&
63+
reset_reason != RESET_REASON_UNKNOWN) {
6364
return NO_SAFE_MODE;
6465
}
6566
port_set_saved_word(SAFE_MODE_DATA_GUARD | (MANUAL_SAFE_MODE << 8));

0 commit comments

Comments
 (0)