From 920e6cbc75ada90c44f6de690d4fceb0be99c126 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 3 Jun 2023 19:08:24 +0200 Subject: [PATCH] fix duplicate serial number --- node.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node.lua b/node.lua index d908cad..0787560 100644 --- a/node.lua +++ b/node.lua @@ -33,9 +33,8 @@ function node.render() if location ~= nil and location ~= '' then font:write(960-(upper_width/2), 631, upper_text, 40, 1,1,1,1) - lower_text = location .. " - Serial " .. serial - lower_width = font:width(lower_text, 20) - font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1) + lower_width = font:width(location, 20) + font:write(960-(lower_width/2), 679, location, 20, 1,1,1,1) else font:write(960-(upper_width/2), 645, upper_text, 40, 1,1,1,1) end