kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/cleanup_ext0_wakeup_setup' into 'master'
esp32: disable ext0 wakeup source after test Closes IDF-1660 See merge request espressif/esp-idf!8745pull/5452/head
commit
e3640301ee
|
@ -412,6 +412,9 @@ TEST_CASE("disable source trigger behavior", "[deepsleep]")
|
|||
// Check error message when source is already disabled
|
||||
esp_err_t err_code = esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_TIMER);
|
||||
TEST_ASSERT(err_code == ESP_ERR_INVALID_STATE);
|
||||
|
||||
// Disable ext0 wakeup source, as this might interfere with other tests
|
||||
ESP_ERROR_CHECK(esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_EXT0));
|
||||
}
|
||||
|
||||
static RTC_DATA_ATTR struct timeval start;
|
||||
|
|
Ładowanie…
Reference in New Issue