diff --git a/displayword.lua b/displayword.lua index 6871486..1ab0e1a 100644 --- a/displayword.lua +++ b/displayword.lua @@ -151,5 +151,6 @@ function generateLEDs(words, color) else buf= buf .. white:rep(1) end + collectgarbage() return buf end diff --git a/webserver.lua b/webserver.lua index 6962431..e379a2a 100644 --- a/webserver.lua +++ b/webserver.lua @@ -15,7 +15,7 @@ function sendWebPage(conn,answertype) timezoneoffset=1 end buf="HTTP/1.1 200 OK\nServer: NodeMCU\nContent-Type: text/html\n\n" - if (node.heap() < 10000) then + if (node.heap() < 8000) then buf = buf .. "