diff --git a/main/inkpot.c b/main/inkpot.c index a27555a..57775c3 100644 --- a/main/inkpot.c +++ b/main/inkpot.c @@ -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);