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