Commit 833c14eb authored by Alexis Brenon's avatar Alexis Brenon
Browse files

Add possibility to have faulty sensors

parent 5fdec33d
......@@ -32,6 +32,17 @@ function class:__init(args)
end
end
if args.faulty_sensors then
for _, id in ipairs(args.faulty_sensors) do
self.SENSORS_SET[id] = nil
for i, s_id in ipairs(self.SENSORS) do
if id == s_id then
table.remove(self.SENSORS, i)
break
end
end
end
end
end
function class:actions()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment