Fix error when POST'ing lua script
This commit is contained in:
parent
45831590dc
commit
d18e9c5234
1 changed files with 1 additions and 4 deletions
|
|
@ -237,10 +237,7 @@ esp_err_t http_draw(httpd_req_t* req) {
|
|||
}
|
||||
|
||||
// TODO: Error handling
|
||||
// TODO: Ensure that `run_lua_string` is executed in an uninterrupted task;
|
||||
// this means we need to set the task prio of the current request.
|
||||
// Execute the Lua script received as post body; this is executed as a
|
||||
// FreeRTOS task that will not be interrupted
|
||||
vTaskPrioritySet(NULL, tskIDLE_PRIORITY); // ensure that FreeRTOS task watchdog does not complain
|
||||
run_lua_string(buf, "E-Paper Script via HTTP");
|
||||
heap_caps_free(buf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue