Skip to content

Fix double increment of sequence number - #11

Merged
FLo-ABB merged 2 commits into
FLo-ABB:mainfrom
albsve2:fix-seqno-double-increment
Oct 26, 2026
Merged

FLo-ABB merged 2 commits into
FLo-ABB:mainfrom
albsve2:fix-seqno-double-increment

Conversation

@albsve2

@albsve2 albsve2 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

The sequence number was incremented both in send_to_robot / send_to_robot_cart and inside _create_sensor_message*, so the header seqno went 1, 3, 5... send_to_robot_path_corr already increments only once. This removes the extra increment so the sequence is 0, 1, 2...

Verified by sending three messages to a local UDP socket and reading back header.seqno: before the fix [1, 3, 5], after [0, 1, 2]. Happy to add the test to the repo if you'd like.

@FLo-ABB
FLo-ABB merged commit 2437670 into FLo-ABB:main Oct 26, 2026
2 checks passed
@FLo-ABB

FLo-ABB commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Thank to pointing this out and fixing it. I appreciate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants