Skip to content

Commit eb966ff

Browse files
committed
Store if brownout boot
1 parent 7f02707 commit eb966ff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Wippersnapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,6 +2721,7 @@ void print_reset_reason(int reason) {
27212721
break; /**<14, for APP CPU, reseted by PRO CPU*/
27222722
case 15:
27232723
WS_DEBUG_PRINTLN("RTCWDT_BROWN_OUT_RESET");
2724+
WS.brownOutCausedReset = true;
27242725
break; /**<15, Reset when the vdd voltage is not stable*/
27252726
case 16:
27262727
WS_DEBUG_PRINTLN("RTCWDT_RTC_RESET");

src/Wippersnapper.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,10 @@ class Wippersnapper {
254254

255255
void provision();
256256

257-
bool lockStatusNeoPixel; ///< True if status LED is using the status neopixel
258-
bool lockStatusDotStar; ///< True if status LED is using the status dotstar
259-
bool lockStatusLED; ///< True if status LED is using the built-in LED
257+
bool brownOutCausedReset = false; ///< True if low power reset - flash write issues
258+
bool lockStatusNeoPixel; ///< True if status LED is using the status neopixel
259+
bool lockStatusDotStar; ///< True if status LED is using the status dotstar
260+
bool lockStatusLED; ///< True if status LED is using the built-in LED
260261
float status_pixel_brightness =
261262
STATUS_PIXEL_BRIGHTNESS_DEFAULT; ///< Global status pixel's brightness
262263
///< (from 0.0 to 1.0)

0 commit comments

Comments
 (0)