fix duplicate serial number
This commit is contained in:
parent
6f16a9fcfb
commit
920e6cbc75
1 changed files with 2 additions and 3 deletions
5
node.lua
5
node.lua
|
@ -33,9 +33,8 @@ function node.render()
|
||||||
if location ~= nil and location ~= '' then
|
if location ~= nil and location ~= '' then
|
||||||
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)
|
||||||
|
|
||||||
lower_text = location .. " - Serial " .. serial
|
lower_width = font:width(location, 20)
|
||||||
lower_width = font:width(lower_text, 20)
|
font:write(960-(lower_width/2), 679, location, 20, 1,1,1,1)
|
||||||
font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1)
|
|
||||||
else
|
else
|
||||||
font:write(960-(upper_width/2), 645, upper_text, 40, 1,1,1,1)
|
font:write(960-(upper_width/2), 645, upper_text, 40, 1,1,1,1)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue