diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index 6ed16bf..a8d0300 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -223,7 +223,7 @@ local node_detector_digiline = { if type(msg) == "table" then if msg.distance or msg.scanname then - if type(msg.distance) == "string" then + if type(msg.distance) == "number" or type(msg.distance) == "string" then meta:set_string("distance", msg.distance) end if type(msg.scanname) == "string" then