Skip to content

Commit

Permalink
allow the safe mode danse if RESET_REASON_UNKNOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed Mar 1, 2021
1 parent 1b3bca1 commit 7441625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supervisor/shared/safe_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ safe_mode_t wait_for_safe_mode_reset(void) {

const mcu_reset_reason_t reset_reason = common_hal_mcu_processor_get_reset_reason();
if (reset_reason != RESET_REASON_POWER_ON &&
reset_reason != RESET_REASON_RESET_PIN) {
reset_reason != RESET_REASON_RESET_PIN &&
reset_reason != RESET_REASON_UNKNOWN) {
return NO_SAFE_MODE;
}
port_set_saved_word(SAFE_MODE_DATA_GUARD | (MANUAL_SAFE_MODE << 8));
Expand Down

0 comments on commit 7441625

Please sign in to comment.