Update esp32-cam-send-jpeg-serial.ino

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent 83e8b0c0b9
commit 61cc4d4170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -174,7 +174,7 @@ void deleteFile(fs::FS &fs, const char * path) {
}
}
void print_wakeup_reason(){ // from https://randomnerdtutorials.com/esp32-deep-sleep-arduino-ide-wake-up-sources/
esp_sleep_wakeup_cause_t print_wakeup_reason(){ // from https://randomnerdtutorials.com/esp32-deep-sleep-arduino-ide-wake-up-sources/
esp_sleep_wakeup_cause_t wakeup_reason;
wakeup_reason = esp_sleep_get_wakeup_cause();
@ -187,6 +187,7 @@ void print_wakeup_reason(){ // from https://randomnerdtutorials.com/esp32-deep-
case ESP_SLEEP_WAKEUP_ULP : Serial.println("Wakeup caused by ULP program"); break;
default : Serial.printf("Wakeup was not caused by deep sleep: %d\n",wakeup_reason); break;
}
return wakeup_reason;
}
void setup() {

Loading…
Cancel
Save

Powered by TurnKey Linux.