Skip to content

Commit 222324f

Browse files
committedMar 13, 2024
disable brownout detection
1 parent 95f836d commit 222324f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ bool print_output_to_serial = true; // prints verbose output to serial
1717
#include "DNSServer.h"
1818
// #include <OTA.h>
1919
#include <Update.h>
20+
#include "soc/soc.h"
21+
#include "soc/rtc_cntl_reg.h"
22+
23+
2024

2125
// Microcontroller specific info (pinouts, Vcc, etc)
2226
const uint16_t opVolt = 3300; //3300 mV
@@ -3841,6 +3845,7 @@ void configureserver()
38413845

38423846
void setup()
38433847
{
3848+
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable detector
38443849
// blinky pin for diagnostic:
38453850
pinMode(LEDPIN, OUTPUT);
38463851

0 commit comments

Comments
 (0)
Please sign in to comment.