From 1eede97c0897f27055f05baed5caf83993523561 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 31 Dec 2023 14:04:22 -0500 Subject: [PATCH] fixed supervisor not using proper config on front panel --- supervisor/panel/front_panel.lua | 4 ++-- supervisor/startup.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/supervisor/panel/front_panel.lua b/supervisor/panel/front_panel.lua index 981dd5e..8e37400 100644 --- a/supervisor/panel/front_panel.lua +++ b/supervisor/panel/front_panel.lua @@ -4,8 +4,8 @@ local util = require("scada-common.util") -local config = require("supervisor.config") local databus = require("supervisor.databus") +local supervisor = require("supervisor.supervisor") local pgi = require("supervisor.panel.pgi") local style = require("supervisor.panel.style") @@ -88,7 +88,7 @@ local function init(panel) local plc_page = Div{parent=page_div,x=1,y=1,hidden=true} local plc_list = Div{parent=plc_page,x=2,y=2,width=49} - for i = 1, config.NUM_REACTORS do + for i = 1, supervisor.config.UnitCount do local ps_prefix = "plc_" .. i .. "_" local plc_entry = Div{parent=plc_list,height=3,fg_bg=bw_fg_bg} diff --git a/supervisor/startup.lua b/supervisor/startup.lua index 96cda57..c576d9d 100644 --- a/supervisor/startup.lua +++ b/supervisor/startup.lua @@ -21,7 +21,7 @@ local supervisor = require("supervisor.supervisor") local svsessions = require("supervisor.session.svsessions") -local SUPERVISOR_VERSION = "v1.2.1" +local SUPERVISOR_VERSION = "v1.2.2" local println = util.println local println_ts = util.println_ts