Remove debugging

This commit is contained in:
ollo 2020-03-04 19:10:37 +01:00
parent 3bd4fc8cb6
commit 77ebc55dbb
2 changed files with 0 additions and 7 deletions

View File

@ -5,22 +5,16 @@ local updateColor = function (data)
if (data.amountOfChars > 0) then if (data.amountOfChars > 0) then
local div = tonumber(data.drawnCharacters/data.amountOfChars) local div = tonumber(data.drawnCharacters/data.amountOfChars)
if (div < 1) then 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 return data.colorFg
elseif (div < 2) then elseif (div < 2) then
print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C1")
return data.colorMin1 return data.colorMin1
elseif (div < 3) then elseif (div < 3) then
print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C2")
return data.colorMin2 return data.colorMin2
elseif (div < 4) then elseif (div < 4) then
print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C3")
return data.colorMin3 return data.colorMin3
elseif (div < 5) then elseif (div < 5) then
print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " C4")
return data.colorMin4 return data.colorMin4
else else
print(tostring(data.drawnCharacters) .. " blocks: " .. tostring(data.amountOfChars) .. " ELSE")
return data.colorFg return data.colorFg
end end
else else

View File

@ -66,7 +66,6 @@ function displayTime()
displayword.generateLEDs(words, color, color1, color2, color3, color4, invertRows) displayword.generateLEDs(words, color, color1, color2, color3, color4, invertRows)
if (displayword.data.drawnCharacters ~= nil) then if (displayword.data.drawnCharacters ~= nil) then
ledBuf = displayword.generateLEDs(words, color, color1, color2, color3, color4, invertRows, displayword.data.drawnCharacters) 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
end end
displayword = nil displayword = nil