PPM parameter clarity
This commit is contained in:
parent
e57c6205e2
commit
5acc6470e3
@ -409,13 +409,13 @@ end
|
|||||||
|
|
||||||
-- get all mounted peripherals by type
|
-- get all mounted peripherals by type
|
||||||
---@nodiscard
|
---@nodiscard
|
||||||
---@param name string type name
|
---@param type string type name
|
||||||
---@return table devices device function tables
|
---@return table devices device function tables
|
||||||
function ppm.get_all_devices(name)
|
function ppm.get_all_devices(type)
|
||||||
local devices = {}
|
local devices = {}
|
||||||
|
|
||||||
for _, data in pairs(_ppm.mounts) do
|
for _, data in pairs(_ppm.mounts) do
|
||||||
if data.type == name then
|
if data.type == type then
|
||||||
table.insert(devices, data.dev)
|
table.insert(devices, data.dev)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user