refactor: consolidate temperature reporting into temperature_driver and remove temperature_monitor
This commit is contained in:
10
coolant_driver.lua
Normal file
10
coolant_driver.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local function report()
|
||||
local reactor = peripheral.find("fissionReactorLogicAdapter")
|
||||
if reactor then
|
||||
return reactor.getTemperature()
|
||||
else
|
||||
return "No reactor found"
|
||||
end
|
||||
end
|
||||
|
||||
return { report = report }
|
||||
Reference in New Issue
Block a user