Permit number type for 'distance' in digiline message again

fixes #680
This commit is contained in:
sfan5 2024-08-15 15:10:14 +02:00
parent d52eac5a4a
commit fe57adec26

View File

@ -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