fix(app_update): Fix CI test_switch_ota by increasing deepsleep

It increases the deepsleep time from 2000 to 20000.
2000 is too small for esp32-s3 chip.
This commit is contained in:
KonstantinKondrashov
2023-07-14 15:05:44 +08:00
parent c7d8b06fd2
commit 28aec9594a
3 changed files with 23 additions and 15 deletions

View File

@@ -856,15 +856,15 @@ void IRAM_ATTR esp_deep_sleep_start(void)
// Enter sleep
if (esp_sleep_start(force_pd_flags | pd_flags, ESP_SLEEP_MODE_DEEP_SLEEP) == ESP_ERR_SLEEP_REJECT) {
ESP_EARLY_LOGW(TAG, "Deep sleep request is rejected");
ESP_EARLY_LOGE(TAG, "Deep sleep request is rejected");
} else {
// Because RTC is in a slower clock domain than the CPU, it
// can take several CPU cycles for the sleep mode to start.
while (1) {
;
}
}
// Because RTC is in a slower clock domain than the CPU, it
// can take several CPU cycles for the sleep mode to start.
while (1) {
;
}
// Never returns here
// Never returns here, except that the sleep is rejected.
esp_ipc_isr_release_other_cpu();
portEXIT_CRITICAL(&spinlock_rtc_deep_sleep);
}