From d8a001af80831abbb6d49856c76dd101ad2bec63 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sat, 6 May 2023 02:28:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=B3=20Disables=20brownouts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 4f380e4..fcc6890 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,6 +6,8 @@ #include #include #include +#include "soc/soc.h" // Disable brownout problems +#include "soc/rtc_cntl_reg.h" // Disable brownout problems #include #include @@ -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);