ESP8266 deepSleep invalid microseconds (fix #1547)

will update ChangeLog later
This commit is contained in:
Mark Becker 2018-11-12 06:10:30 +01:00 committed by GitHub
parent 155207ccd5
commit 1ab0d95ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ void jswrap_ESP8266_deepSleep(JsVar *jsMicros, JsVar *jsOption) {
uint8_t option = jsvGetInteger(jsOption);
system_deep_sleep_set_option(option);
int sleepTime = jsvGetInteger(jsMicros);
uint64_t sleepTime = jsvGetLongInteger(jsMicros);
system_deep_sleep(sleepTime);
}