rework design to remove c3voc mention

This commit is contained in:
Franzi 2023-06-03 19:03:31 +02:00
parent ae6ea74cbb
commit a3a3e64071
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -27,17 +27,13 @@ function node.render()
-- upper: 623 -- upper: 623
-- lower: 707 -- lower: 707
upper_text = "C3VOC: " .. description upper_text = description .. " (" .. serial .. ")"
if location == nil or location == '' then
lower_text = "Serial " .. serial
else
lower_text = location .. " - Serial " .. serial
end
upper_width = font:width(upper_text, 40) upper_width = font:width(upper_text, 40)
font:write(960-(upper_width/2), 631, upper_text, 40, 1,1,1,1) font:write(960-(upper_width/2), 631, upper_text, 40, 1,1,1,1)
if location ~= nil and location ~= '' then
lower_text = location .. " - Serial " .. serial
lower_width = font:width(lower_text, 20) lower_width = font:width(lower_text, 20)
font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1) font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1)
end
end end