From f2937b47e9c41cf1f8906b13567c9292bbb91db7 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 29 Jun 2024 14:49:26 -0400 Subject: [PATCH] cleanup --- coordinator/session/apisessions.lua | 2 +- reactor-plc/plc.lua | 2 +- scada-common/comms.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coordinator/session/apisessions.lua b/coordinator/session/apisessions.lua index 4daa45d..5c4a38a 100644 --- a/coordinator/session/apisessions.lua +++ b/coordinator/session/apisessions.lua @@ -90,7 +90,7 @@ end -- establish a new API session ---@nodiscard ---@param source_addr integer pocket computer ID ----@param i_seq_num integer initial sequence number to use next +---@param i_seq_num integer initial (most recent) sequence number ---@param version string pocket version ---@return integer session_id function apisessions.establish_session(source_addr, i_seq_num, version) diff --git a/reactor-plc/plc.lua b/reactor-plc/plc.lua index 3a61e37..c89974f 100644 --- a/reactor-plc/plc.lua +++ b/reactor-plc/plc.lua @@ -715,8 +715,8 @@ function plc.comms(version, nic, reactor, rps, conn_watchdog) function public.unlink() self.sv_addr = comms.BROADCAST self.linked = false - self.status_cache = nil self.r_seq_num = nil + self.status_cache = nil databus.tx_link_state(types.PANEL_LINK_STATE.DISCONNECTED) end diff --git a/scada-common/comms.lua b/scada-common/comms.lua index bfedd2c..fa6f6ff 100644 --- a/scada-common/comms.lua +++ b/scada-common/comms.lua @@ -280,7 +280,7 @@ function comms.authd_packet() src_addr = comms.BROADCAST, dest_addr = comms.BROADCAST, mac = "", - payload = nil + payload = {} } ---@class authd_packet