From 03bbf8a891d0a3374a91baf82a88fb3e42f195c9 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Mon, 22 Jul 2024 23:45:25 -0400 Subject: [PATCH] updated coordinator configurator connection sequence number logic to match new system --- coordinator/configure.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coordinator/configure.lua b/coordinator/configure.lua index b16a43d..8c764d9 100644 --- a/coordinator/configure.lua +++ b/coordinator/configure.lua @@ -70,7 +70,7 @@ local tool_ctl = { nic = nil, ---@type nic net_listen = false, sv_addr = comms.BROADCAST, - sv_seq_num = 0, + sv_seq_num = util.time_ms() * 10, sv_cool_conf = nil, ---@type table list of boiler & turbine counts show_sv_cfg = nil, ---@type function @@ -1122,7 +1122,6 @@ local function config_view(display) tool_ctl.nic.open(tmp_cfg.CRD_Channel) tool_ctl.sv_addr = comms.BROADCAST - tool_ctl.sv_seq_num = 0 tool_ctl.net_listen = true send_sv(MGMT_TYPE.ESTABLISH, { comms.version, "0.0.0", DEVICE_TYPE.CRD })