Skip to content

Commit

Permalink
Permit number type for 'distance' in digiline message again
Browse files Browse the repository at this point in the history
fixes #680
  • Loading branch information
sfan5 committed Aug 15, 2024
1 parent d52eac5 commit fe57ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_detector/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe57ade

Please sign in to comment.