Skip to content

Commit

Permalink
Reset tx seq number upon rx error with new initiator
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Nov 11, 2023
1 parent 9adab1a commit 033ace9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion software/firmware/.cproject
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
</target>
<target name="UID" path="tests" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>${cross_make}</buildCommand>
<buildArguments>ID=c0:98:e5:42:01:14</buildArguments>
<buildArguments>ID=c0:98:e5:42:01:15</buildArguments>
<buildTarget>UID</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>false</useDefaultCommand>
Expand Down
1 change: 1 addition & 0 deletions software/firmware/src/tasks/ranging/ranging_phase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 033ace9

Please sign in to comment.