diff --git a/scada-common/ppm.lua b/scada-common/ppm.lua index 4b9e2f1..5e19636 100644 --- a/scada-common/ppm.lua +++ b/scada-common/ppm.lua @@ -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