🕳 Disables brownouts

This commit is contained in:
Rune Harlyk
2023-05-06 02:28:26 +02:00
parent 81a4026562
commit d8a001af80
+3
View File
@@ -6,6 +6,8 @@
#include <SPIFFS.h>
#include <esp_camera.h>
#include <ArduinoOTA.h>
#include "soc/soc.h" // Disable brownout problems
#include "soc/rtc_cntl_reg.h" // Disable brownout problems
#include <Wire.h>
#include <NewPing.h>
@@ -126,6 +128,7 @@ void setupOAT(){
}
void setup(){
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
Serial.begin(BAUDRATE);
Serial.setDebugOutput(SERIAL_DEBUG_OUTPUT);