ppm includes get_type function now

This commit is contained in:
Mikayla Fischler 2022-03-15 11:58:22 -04:00
parent a9d4458103
commit 6e1e4c4685

View File

@ -95,6 +95,11 @@ function get_periph(iface)
return self.mounts[iface].device
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
function get_device(name)
local device = nil