From 5acc6470e31fb089d4209efad3f781bee7062c0b Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 26 Oct 2025 20:41:25 -0400 Subject: [PATCH] PPM parameter clarity --- scada-common/ppm.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scada-common/ppm.lua b/scada-common/ppm.lua index aa46808..7e4aa30 100644 --- a/scada-common/ppm.lua +++ b/scada-common/ppm.lua @@ -409,13 +409,13 @@ end -- get all mounted peripherals by type ---@nodiscard ----@param name string type name +---@param type string type name ---@return table devices device function tables -function ppm.get_all_devices(name) +function ppm.get_all_devices(type) local devices = {} for _, data in pairs(_ppm.mounts) do - if data.type == name then + if data.type == type then table.insert(devices, data.dev) end end