fix identifyMonitor? pt 2

This commit is contained in:
2026-06-25 14:48:07 -05:00
parent a26fd278da
commit 84632a101c

View File

@@ -70,10 +70,10 @@ local function identifyMonitor(monitorType)
end
print("Available monitors:")
for _, monitor in pairs(monitors) do
for i, monitor in ipairs(monitors) do
if monitor then
local width, height = monitor.getSize()
print(i .. ". " .. name .. " (" .. width .. "x" .. height .. ")")
print(i .. ". " .. peripheral.getName(monitor) .. " (" .. width .. "x" .. height .. ")")
end
end