matthias-bs / BresserWeatherSensorTTN

Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver based on ESP32 and RFM95W/SX1276 - sends data to a LoRaWAN Network (e.g. The Things Network)
MIT License
22 stars 9 forks source link

Inadvertent change of sleep duration #81

Open matthias-bs opened 4 months ago

matthias-bs commented 4 months ago

prefs.sleep_interval is read from Preferences in setup() (with a default value of SLEEP_INTERVAL). When prefs.sleep_interval is read in prepareSleep(), its value sometimes has changed due to an unknown reason.

This is presumably caused by a buffer overflow.

matthias-bs commented 4 months ago

Workaround in #83 (does not fix the root cause, which is still not clear).