datacute / DoubleResetDetector

Library to detect a double reset, using ESP8266 RTC User Memory
MIT License
87 stars 16 forks source link

Write to user RTC area in example #2

Closed ordnungswidrig closed 7 years ago

ordnungswidrig commented 7 years ago

According to ESP8266 documentation the first 256 bytes in the RTC are reserved for the system. I suggest to change the example to write to address 64 (the addressing is done in 4byte steps). See ESP8266 SDK API Guide page 19.

datacute commented 7 years ago

Double Reset Detector calls ESP.rtcUserMemoryWrite which adds 64: https://github.com/esp8266/Arduino/blob/master/cores/esp8266/Esp.cpp#L131

ordnungswidrig commented 7 years ago

Oh, silly me, I was sure I had checked that. Keep up the good work.