Skip to content

Commit

Permalink
Only touch the brownout detector on the ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMueller2003 committed Feb 16, 2022
1 parent 06a4585 commit 817ff0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ESPixelStick/ESPixelStick.ino
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ RF_PRE_INIT() {
void setup()
{
config.BlankDelay = 5;

#ifdef ARDUINO_ARCH_ESP32
// disable brownout detector
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
#endif // def ARDUINO_ARCH_ESP32

// Setup serial log port
LOG_PORT.begin(115200);
Expand Down

0 comments on commit 817ff0a

Please sign in to comment.