mirror of
https://github.com/kepler155c/opus
synced 2025-05-17 14:54:09 +00:00
manipulator device :(
This commit is contained in:
parent
e14a71ab6a
commit
3de03bef22
@ -155,10 +155,8 @@ end
|
|||||||
|
|
||||||
drivers['manipulator'] = function(dev)
|
drivers['manipulator'] = function(dev)
|
||||||
if dev.getName then
|
if dev.getName then
|
||||||
local name
|
|
||||||
pcall(function()
|
pcall(function()
|
||||||
name = dev.getName()
|
local name = dev.getName()
|
||||||
end)
|
|
||||||
if name then
|
if name then
|
||||||
if dev.getInventory then
|
if dev.getInventory then
|
||||||
createDevice(name .. ':inventory', 'inventory', 'getInventory', dev)
|
createDevice(name .. ':inventory', 'inventory', 'getInventory', dev)
|
||||||
@ -172,6 +170,7 @@ drivers['manipulator'] = function(dev)
|
|||||||
|
|
||||||
return dev._children
|
return dev._children
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user