From 83e8b0c0b96662582237da27ead439316313085b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 16 Dec 2022 09:22:35 -0500 Subject: [PATCH] changed to ext1 sleep --- .../esp32-cam-send-jpeg-serial.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino index e8b23c6f..b6320657 100644 --- a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino +++ b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino @@ -338,8 +338,9 @@ void loop() { // esp_sleep_enable_timer_wakeup(2 * 1000000); // sleep for 10 seconds - esp_sleep_enable_ext0_wakeup(GPIO_NUM_13, 1); - +// esp_sleep_enable_ext0_wakeup(GPIO_NUM_13, 1); + esp_sleep_enable_ext1_wakeup(2^13, ESP_EXT1_WAKEUP_ANY_HIGH); + Serial.println("Going to sleep now until wake by GPIO13 going HIGH"); Serial.flush(); esp_deep_sleep_start();