Merge pull request #7814 from thess/deep-sleep-wakeup

Allow web_workflow to startup after deep sleep alarm wakeup
This commit is contained in:
Dan Halbert 2023-03-29 23:07:54 -04:00 committed by GitHub
commit 55c3e9f6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,7 @@ void supervisor_start_web_workflow(void) {
const mcu_reset_reason_t reset_reason = common_hal_mcu_processor_get_reset_reason(); const mcu_reset_reason_t reset_reason = common_hal_mcu_processor_get_reset_reason();
if (reset_reason != RESET_REASON_POWER_ON && if (reset_reason != RESET_REASON_POWER_ON &&
reset_reason != RESET_REASON_RESET_PIN && reset_reason != RESET_REASON_RESET_PIN &&
reset_reason != RESET_REASON_DEEP_SLEEP_ALARM &&
reset_reason != RESET_REASON_UNKNOWN && reset_reason != RESET_REASON_UNKNOWN &&
reset_reason != RESET_REASON_SOFTWARE) { reset_reason != RESET_REASON_SOFTWARE) {
return; return;