From d18e9c523457ded8b363869c5647208ced49bcf7 Mon Sep 17 00:00:00 2001 From: arne Date: Sun, 5 Oct 2025 12:19:47 +0200 Subject: [PATCH] Fix error when POST'ing lua script --- main/inkpot.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);