refactor report function to list peripherals instead of fetching temperature
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
|
|
||||||
local function report()
|
local function report()
|
||||||
local reactor = peripheral.find("fissionReactorLogicAdapter")
|
local peripherals = peripheral.getNames()
|
||||||
return reactor.getTemerature()
|
for i, name in ipairs(peripherals) do
|
||||||
|
print("Peripheral " .. i .. ": " .. name)
|
||||||
|
end
|
||||||
|
return "abc"
|
||||||
|
-- local reactor = peripheral.find("fissionReactorLogicAdapter")
|
||||||
|
-- return reactor.getTemerature()
|
||||||
end
|
end
|
||||||
|
|
||||||
return { report = report }
|
return { report = report }
|
||||||
Reference in New Issue
Block a user