Obsolete wakeup command in favor of idle off

This commit is contained in:
fvanroie 2021-05-23 14:29:57 +02:00
parent 6835eda5b2
commit 99a7b58ae0

View File

@ -1095,16 +1095,16 @@ void handleFileCreate()
}
}
if(webServer.hasArg(F("init"))) {
dispatch_wakeup(NULL, NULL);
dispatch_idle(NULL, "0");
hasp_init();
}
if(webServer.hasArg(F("load"))) {
dispatch_wakeup(NULL, NULL);
dispatch_idle(NULL, "0");
hasp_load_json();
}
if(webServer.hasArg(F("page"))) {
uint8_t pageid = atoi(webServer.arg(F("page")).c_str());
dispatch_wakeup(NULL, NULL);
dispatch_idle(NULL, "0");
dispatch_set_page(pageid, LV_SCR_LOAD_ANIM_NONE);
}
webServer.send(200, PSTR("text/plain"), "");