Update ESP32cam-demo.ino

master
Alan 2024-06-03 09:54:56 +01:00 zatwierdzone przez GitHub
rodzic 212f0f2544
commit 5f4fb927c1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -47,6 +47,8 @@
#include "esp_camera.h" // https://github.com/espressif/esp32-camera #include "esp_camera.h" // https://github.com/espressif/esp32-camera
#include <Arduino.h> #include <Arduino.h>
// WATCHDOG TIMER IS NOT WORKING WITH ESP32 3.0.0 (disabled in setup)- jun24
#include <esp_task_wdt.h> // watchdog timer - see: https://iotassistant.io/esp32/enable-hardware-watchdog-timer-esp32-arduino-ide/ #include <esp_task_wdt.h> // watchdog timer - see: https://iotassistant.io/esp32/enable-hardware-watchdog-timer-esp32-arduino-ide/
@ -387,10 +389,10 @@ void setup() {
setupFlashPWM(); // configure PWM for the illumination LED setupFlashPWM(); // configure PWM for the illumination LED
// watchdog timer (esp32) // watchdog timer (esp32) - NOT WORKING WITH ESP32 3.0.0 (disabled in setup)- jun24
if (serialDebug) Serial.println("Configuring watchdog timer"); // if (serialDebug) Serial.println("Configuring watchdog timer");
esp_task_wdt_init(WDT_TIMEOUT, true); //enable panic so ESP32 restarts // esp_task_wdt_init(WDT_TIMEOUT, true); //enable panic so ESP32 restarts
esp_task_wdt_add(NULL); //add current thread to WDT watch // esp_task_wdt_add(NULL); //add current thread to WDT watch
// startup complete // startup complete
if (serialDebug) Serial.println("\nStarted..."); if (serialDebug) Serial.println("\nStarted...");