From ebc75e3bbef882aaa86b37652a80e0a4d713ef2b Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 25 May 2019 15:30:53 +0200 Subject: [PATCH] Lolin32 hal files update --- src/hal/lolin32lite.h | 7 ++++--- src/hal/wemos32oled.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hal/lolin32lite.h b/src/hal/lolin32lite.h index 70dfbcdf..3c3942e8 100644 --- a/src/hal/lolin32lite.h +++ b/src/hal/lolin32lite.h @@ -7,9 +7,10 @@ // Hardware related definitions for lolin32lite (without LoRa shield) -#define HAS_LORA 0 // no LoRa module -#define CFG_sx1272_radio 1 // dummy #define HAS_LED LED_BUILTIN // on board LED on GPIO5 #define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW -#endif +// disable brownout detection (avoid unexpected reset on some boards) +#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature + +#endif \ No newline at end of file diff --git a/src/hal/wemos32oled.h b/src/hal/wemos32oled.h index d5c27832..3917dfea 100644 --- a/src/hal/wemos32oled.h +++ b/src/hal/wemos32oled.h @@ -40,6 +40,6 @@ // user defined sensors (if connected) //#define HAS_SENSORS 1 // comment out if device has user defined sensors -//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature +#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #endif