From be560cd532747cc8b313e667c7532b045f7843ea Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 12 May 2024 15:19:01 -0400 Subject: [PATCH] luacheck fixes --- graphics/element.lua | 1 - graphics/elements/indicators/icon.lua | 1 - pocket/iocontrol.lua | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) 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