Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1beca6f

Browse files
authored
Fix LowPowerDemo.ino (esp8266#8841)
CRC checking of data read from RTC was always true
1 parent6dfebec commit1beca6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp