Fix error when POST'ing lua script

This commit is contained in:
arne 2025-10-05 12:19:47 +02:00
commit d18e9c5234

View file

@ -237,10 +237,7 @@ esp_err_t http_draw(httpd_req_t* req) {
} }
// TODO: Error handling // TODO: Error handling
// TODO: Ensure that `run_lua_string` is executed in an uninterrupted task; vTaskPrioritySet(NULL, tskIDLE_PRIORITY); // ensure that FreeRTOS task watchdog does not complain
// 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
run_lua_string(buf, "E-Paper Script via HTTP"); run_lua_string(buf, "E-Paper Script via HTTP");
heap_caps_free(buf); heap_caps_free(buf);