Skip to content

Commit

Permalink
disable brownout detection
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJBurke committed Mar 13, 2024
1 parent 95f836d commit 222324f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ bool print_output_to_serial = true; // prints verbose output to serial
#include "DNSServer.h"
// #include <OTA.h>
#include <Update.h>
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"



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

void setup()
{
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable detector
// blinky pin for diagnostic:
pinMode(LEDPIN, OUTPUT);

Expand Down

0 comments on commit 222324f

Please sign in to comment.