Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
128
stars
41
forks
source link
DeepSleep value checking incorrect in "void CmndDeepSleep(void)" #176
Closed
thomas-lentz closed 4 years ago
BUG DESCRIPTION
Can't set deepsleep to the following values: 0, 10 to 39, >1000 (after correcting issue #175)
REQUESTED INFORMATION
status 0
:TO REPRODUCE
Just enter "deepsleep 0" or "deepsleep 10" at console or via mqtt
ADDITIONAL CONTEXT
The boundary check in "void CmndDeepSleep(void)" seems to be faulty (39<deepsleep<1001):
This fixes the problem:
It seems to be a copy&paste failure. The "faulty" boundary check seems to be copied from: