manipulator :(
This commit is contained in:
@@ -21,11 +21,6 @@ function Storage:init(nodes)
|
|||||||
|
|
||||||
Event.on({ 'device_attach', 'device_detach' }, function(e, dev)
|
Event.on({ 'device_attach', 'device_detach' }, function(e, dev)
|
||||||
_G._debug('%s: %s', e, tostring(dev))
|
_G._debug('%s: %s', e, tostring(dev))
|
||||||
if e == 'device_detach' then
|
|
||||||
if self.nodes[dev] then
|
|
||||||
self.nodes[dev].adapter = nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
self:initStorage()
|
self:initStorage()
|
||||||
end)
|
end)
|
||||||
Event.onInterval(15, function()
|
Event.onInterval(15, function()
|
||||||
|
|||||||
Reference in New Issue
Block a user