mirror of
https://github.com/kepler155c/opus
synced 2024-06-25 22:53:21 +00:00
manipulator :(
This commit is contained in:
parent
c5a821f264
commit
2517612622
|
@ -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)
|
||||||
|
@ -166,6 +167,7 @@ drivers['manipulator'] = function(dev)
|
||||||
end
|
end
|
||||||
|
|
||||||
return dev._children
|
return dev._children
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- initialize drivers
|
-- initialize drivers
|
||||||
|
|
Loading…
Reference in New Issue
Block a user