diff --git a/coolant_driver.lua b/coolant_driver.lua index 448c33b..0f4fb35 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -2,7 +2,7 @@ local maxValue = 100 local minValue = 0 local function configureReport(monitor) - local x,y = term.getCursorPos() + local x,y = monitor.getCursorPos() monitor.setCursorPos(x, y + 1) monitor.clearLine() end diff --git a/main.lua b/main.lua index 428e7c7..a36857e 100644 --- a/main.lua +++ b/main.lua @@ -14,7 +14,6 @@ end local function runDisplay() monitor.clear() monitor.setTextScale(1) - monitor.setCursorPos(1,0) while true do local drivers = { { Label = "Temperature", driver = tempDriver },