refactor report function to list peripherals instead of fetching temperature

This commit is contained in:
2025-06-14 12:30:27 -04:00
parent bb6087bc84
commit 5498aff9a3

View File

@@ -1,7 +1,12 @@
local function report()
local reactor = peripheral.find("fissionReactorLogicAdapter")
return reactor.getTemerature()
local peripherals = peripheral.getNames()
for i, name in ipairs(peripherals) do
print("Peripheral " .. i .. ": " .. name)
end
return "abc"
-- local reactor = peripheral.find("fissionReactorLogicAdapter")
-- return reactor.getTemerature()
end
return { report = report }