8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dfebec commit 1beca6fCopy full SHA for 1beca6f
libraries/esp8266/examples/LowPowerDemo/LowPowerDemo.ino
@@ -128,7 +128,7 @@ void setup() {
128
129
// Read previous resets (Deep Sleeps) from RTC memory, if any
130
uint32_t crcOfData = crc32((uint8_t*)&nv->rtcData.rstCount, sizeof(nv->rtcData.rstCount));
131
- if ((crcOfData = nv->rtcData.crc32) && (resetCause == "Deep-Sleep Wake")) {
+ if ((crcOfData == nv->rtcData.crc32) && (resetCause == "Deep-Sleep Wake")) {
132
resetCount = nv->rtcData.rstCount; // read the previous reset count
133
resetCount++;
134
}
0 commit comments