From 033ace975b93e51e5ed2546890c0e9b19cb7b0ee Mon Sep 17 00:00:00 2001 From: Will Hedgecock Date: Fri, 10 Nov 2023 18:18:10 -0600 Subject: [PATCH] Reset tx seq number upon rx error with new initiator --- software/firmware/.cproject | 2 +- software/firmware/src/tasks/ranging/ranging_phase.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/software/firmware/.cproject b/software/firmware/.cproject index 828b0179..8a1c31ba 100644 --- a/software/firmware/.cproject +++ b/software/firmware/.cproject @@ -347,7 +347,7 @@ ${cross_make} - ID=c0:98:e5:42:01:14 + ID=c0:98:e5:42:01:15 UID true false diff --git a/software/firmware/src/tasks/ranging/ranging_phase.c b/software/firmware/src/tasks/ranging/ranging_phase.c index b3771964..3dd00a48 100644 --- a/software/firmware/src/tasks/ranging/ranging_phase.c +++ b/software/firmware/src/tasks/ranging/ranging_phase.c @@ -279,6 +279,7 @@ scheduler_phase_t ranging_phase_rx_error(void) ranging_radio_choose_antenna(initiator_antenna); if (initiator_antenna == 0) { + ranging_packet.sequence_number = 0; responder_index = (responder_index + 1) % schedule_length; if (responder_index == 0) {