ppm includes get_type function now
This commit is contained in:
parent
a9d4458103
commit
6e1e4c4685
@ -95,6 +95,11 @@ function get_periph(iface)
|
|||||||
return self.mounts[iface].device
|
return self.mounts[iface].device
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- get a mounted peripheral type by side/interface
|
||||||
|
function get_type(iface)
|
||||||
|
return self.mounts[iface].type
|
||||||
|
end
|
||||||
|
|
||||||
-- get a mounted peripheral by type
|
-- get a mounted peripheral by type
|
||||||
function get_device(name)
|
function get_device(name)
|
||||||
local device = nil
|
local device = nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user