mirror of https://github.com/kepler155c/opus
manipulator :(
This commit is contained in:
parent
c5a821f264
commit
2517612622
|
@ -154,6 +154,7 @@ local function createDevice(name, devType, method, manipulator)
|
|||
end
|
||||
|
||||
drivers['manipulator'] = function(dev)
|
||||
if dev.getName then
|
||||
local name = dev.getName()
|
||||
if dev.getInventory then
|
||||
createDevice(name .. ':inventory', 'inventory', 'getInventory', dev)
|
||||
|
@ -167,6 +168,7 @@ drivers['manipulator'] = function(dev)
|
|||
|
||||
return dev._children
|
||||
end
|
||||
end
|
||||
|
||||
-- initialize drivers
|
||||
for _,v in pairs(device) do
|
||||
|
|
Loading…
Reference in New Issue