change(pm/ext1): replace deprecated ext1 func
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ static int deep_sleep(int argc, char **argv)
|
||||
io_num, level ? "HIGH" : "LOW");
|
||||
|
||||
#if SOC_PM_SUPPORT_EXT1_WAKEUP
|
||||
ESP_ERROR_CHECK( esp_sleep_enable_ext1_wakeup(1ULL << io_num, level) );
|
||||
ESP_ERROR_CHECK( esp_sleep_set_ext1_wakeup_io(1ULL << io_num, level) );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user