#543 reset remote sequence numbers when linking

This commit is contained in:
Mikayla Fischler
2024-08-28 21:01:04 -04:00
parent 705494bb7e
commit 035a26cc07
8 changed files with 9 additions and 4 deletions

View File

@@ -439,11 +439,13 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog, nav)
-- attempt supervisor connection establishment
local function _send_sv_establish()
self.sv.r_seq_num = nil
_send_sv(MGMT_TYPE.ESTABLISH, { comms.version, version, DEVICE_TYPE.PKT })
end
-- attempt coordinator API connection establishment
local function _send_api_establish()
self.api.r_seq_num = nil
_send_crd(MGMT_TYPE.ESTABLISH, { comms.version, version, DEVICE_TYPE.PKT, comms.api_version })
end