1
0
mirror of https://github.com/kepler155c/opus synced 2024-06-16 10:19:59 +00:00

manipulator :(

This commit is contained in:
kepler155c@gmail.com 2018-12-02 15:10:21 -05:00
parent c5a821f264
commit 2517612622

View File

@ -154,6 +154,7 @@ local function createDevice(name, devType, method, manipulator)
end end
drivers['manipulator'] = function(dev) drivers['manipulator'] = function(dev)
if dev.getName then
local name = dev.getName() local name = dev.getName()
if dev.getInventory then if dev.getInventory then
createDevice(name .. ':inventory', 'inventory', 'getInventory', dev) createDevice(name .. ':inventory', 'inventory', 'getInventory', dev)
@ -167,6 +168,7 @@ drivers['manipulator'] = function(dev)
return dev._children return dev._children
end end
end
-- initialize drivers -- initialize drivers
for _,v in pairs(device) do for _,v in pairs(device) do