From 6e1e4c4685f89119b1f9d3d192d67f874d8b83be Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 15 Mar 2022 11:58:22 -0400 Subject: [PATCH] ppm includes get_type function now --- scada-common/ppm.lua | 5 +++++ 1 file changed, 5 insertions(+) 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