fix(app_update): Reverted: Fix CI test_switch_ota by increasing deepsleep

This reverts commit 7ac7d43541.
This commit is contained in:
Zim Kalinowski
2023-09-27 12:25:13 +02:00
parent 1256e6fd6b
commit 1c21f07139
3 changed files with 15 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -185,8 +185,8 @@ static void erase_ota_data(void)
static void reboot_as_deep_sleep(void)
{
ESP_LOGI(TAG, "reboot as deep sleep");
esp_deep_sleep(20000);
TEST_FAIL_MESSAGE("Should never be reachable except when sleep is rejected, abort");
esp_sleep_enable_timer_wakeup(2000);
esp_deep_sleep_start();
}
/* @brief Copies a current app to next partition (OTA0-15), after that ESP is rebooting and run this (the next) OTAx.