88#include " src/parsebytes.h"
99#include " time.h"
1010#include < ESPmDNS.h>
11+ #include " soc/soc.h"
12+ #include " soc/rtc_cntl_reg.h"
1113
1214
1315SET_LOOP_TASK_STACK_SIZE (12 *1024 );
@@ -75,8 +77,8 @@ extern esp_err_t SendPictureHttp();
7577
7678unsigned long previousMillis;
7779
78- // Every 5 Minutes
79- const unsigned long interval = (5 * 60 * 1000 );
80+ // Every 1 Minutes
81+ const unsigned long interval = (1 * 60 * 1000 );
8082
8183// Names for the Camera. (set these in myconfig.h)
8284#if defined(CAM_NAME)
@@ -391,8 +393,12 @@ void StartCamera()
391393 // Start a 60 second watchdog timer
392394 esp_task_wdt_init (60 , true );
393395 esp_task_wdt_add (NULL );
394- // delay(60 * 1000);
395- // ESP.restart();
396+ while (1 )
397+ {
398+ flashLED (1500 );
399+ delay (1500 );
400+ }
401+
396402 }
397403 else
398404 {
@@ -711,6 +717,8 @@ void setup()
711717 Serial.println (baseVersion);
712718 Serial.println ();
713719
720+ // WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
721+
714722 // Warn if no PSRAM is detected (typically user error with board selection in the IDE)
715723 if (!psramFound ())
716724 {
@@ -734,7 +742,7 @@ void setup()
734742
735743#if defined(LED_PIN) // If we have a notification LED, set it to output
736744 pinMode (LED_PIN, OUTPUT);
737- digitalWrite (LED_PIN, LED_ON );
745+ digitalWrite (LED_PIN, LED_OFF );
738746#endif
739747
740748 // Start the SPIFFS filesystem before we initialise the camera
0 commit comments