fix identifyMonitor? pt 2
This commit is contained in:
4
main.lua
4
main.lua
@@ -70,10 +70,10 @@ local function identifyMonitor(monitorType)
|
|||||||
end
|
end
|
||||||
|
|
||||||
print("Available monitors:")
|
print("Available monitors:")
|
||||||
for _, monitor in pairs(monitors) do
|
for i, monitor in ipairs(monitors) do
|
||||||
if monitor then
|
if monitor then
|
||||||
local width, height = monitor.getSize()
|
local width, height = monitor.getSize()
|
||||||
print(i .. ". " .. name .. " (" .. width .. "x" .. height .. ")")
|
print(i .. ". " .. peripheral.getName(monitor) .. " (" .. width .. "x" .. height .. ")")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user