Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1beca6f

Browse filesBrowse files
authored
Fix LowPowerDemo.ino (esp8266#8841)
CRC checking of data read from RTC was always true
1 parent 6dfebec commit 1beca6f
Copy full SHA for 1beca6f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎libraries/esp8266/examples/LowPowerDemo/LowPowerDemo.ino

Copy file name to clipboardExpand all lines: libraries/esp8266/examples/LowPowerDemo/LowPowerDemo.ino
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void setup() {
128128

129129
// Read previous resets (Deep Sleeps) from RTC memory, if any
130130
uint32_t crcOfData = crc32((uint8_t*)&nv->rtcData.rstCount, sizeof(nv->rtcData.rstCount));
131-
if ((crcOfData = nv->rtcData.crc32) && (resetCause == "Deep-Sleep Wake")) {
131+
if ((crcOfData == nv->rtcData.crc32) && (resetCause == "Deep-Sleep Wake")) {
132132
resetCount = nv->rtcData.rstCount; // read the previous reset count
133133
resetCount++;
134134
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.