From 77ebc55dbb5d89bdbdb3576684a54d6d2b483526 Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 4 Mar 2020 19:10:37 +0100 Subject: [PATCH] Remove debugging --- displayword.lua | 6 ------ main.lua | 1 - 2 files changed, 7 deletions(-) diff --git a/displayword.lua b/displayword.lua index 93c8eaf..58752c9 100644 --- a/displayword.lua +++ b/displayword.lua @@ -5,22 +5,16 @@ local updateColor = function (data) if (data.amountOfChars > 0) then local div = tonumber(data.drawnCharacters/data.amountOfChars) if (div < 1) then - print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " FG " .. tostring(string.byte(data.colorFg,1)) .. "x" .. tostring(string.byte(data.colorFg,2)) .. "x" .. tostring(string.byte(data.colorFg,3)) ) return data.colorFg elseif (div < 2) then - print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C1") return data.colorMin1 elseif (div < 3) then - print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C2") return data.colorMin2 elseif (div < 4) then - print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C3") return data.colorMin3 elseif (div < 5) then - print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C4") return data.colorMin4 else - print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " ELSE") return data.colorFg end else diff --git a/main.lua b/main.lua index 8c85f37..59aca40 100644 --- a/main.lua +++ b/main.lua @@ -66,7 +66,6 @@ function displayTime() displayword.generateLEDs(words, color, color1, color2, color3, color4, invertRows) if (displayword.data.drawnCharacters ~= nil) then ledBuf = displayword.generateLEDs(words, color, color1, color2, color3, color4, invertRows, displayword.data.drawnCharacters) - print("Local time : " .. time.year .. "-" .. time.month .. "-" .. time.day .. " " .. time.hour .. ":" .. time.minute .. ":" .. time.second .. " char: " .. tostring(displayword.data.drawnCharacters)) end end displayword = nil