updated
This commit is contained in:
5
main.lua
5
main.lua
@@ -1,8 +1,9 @@
|
|||||||
local kernel = require("kernel")
|
local kernel = require("kernel")
|
||||||
local tempDriver = kernel.addDriver("temperature_driver")
|
|
||||||
local coolantDriver = kernel.addDriver("coolant_driver")
|
|
||||||
local reactor = peripheral.find("fissionReactorLogicAdapter")
|
local reactor = peripheral.find("fissionReactorLogicAdapter")
|
||||||
local monitor = peripheral.find("monitor")
|
local monitor = peripheral.find("monitor")
|
||||||
|
local tempDriver = kernel.addDriver("temperature_driver")
|
||||||
|
local coolantDriver = kernel.addDriver("coolant_driver")
|
||||||
|
|
||||||
local function runMonitors()
|
local function runMonitors()
|
||||||
while true do
|
while true do
|
||||||
tempDriver.watch(reactor, monitor)
|
tempDriver.watch(reactor, monitor)
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ local function configureReport(monitor)
|
|||||||
monitor.clearLine()
|
monitor.clearLine()
|
||||||
end
|
end
|
||||||
|
|
||||||
return { report = report, watch = watch}
|
return { report = report, watch = watch }
|
||||||
Reference in New Issue
Block a user