diff --git a/graphics/element.lua b/graphics/element.lua index ef05911..731a22c 100644 --- a/graphics/element.lua +++ b/graphics/element.lua @@ -3,7 +3,6 @@ -- local util = require("scada-common.util") -local log = require("scada-common.log") local core = require("graphics.core") diff --git a/graphics/elements/indicators/icon.lua b/graphics/elements/indicators/icon.lua index 402eb85..15aef3a 100644 --- a/graphics/elements/indicators/icon.lua +++ b/graphics/elements/indicators/icon.lua @@ -1,7 +1,6 @@ -- Icon Indicator Graphics Element local element = require("graphics.element") -local util = require("scada-common.util") ---@class icon_sym_color ---@field color cpair diff --git a/pocket/iocontrol.lua b/pocket/iocontrol.lua index ce76dc8..b33c262 100644 --- a/pocket/iocontrol.lua +++ b/pocket/iocontrol.lua @@ -674,10 +674,7 @@ function iocontrol.record_unit_data(data) local reactor_status = 1 local rps_status = 1 - if not unit.connected then - -- disconnected - reactor_status = 1 - else + if unit.connected then -- update RPS status if unit.reactor_data.rps_tripped then control_status = 2