Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic when different pan IDs #30

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Fix panic when different pan IDs #30

merged 1 commit into from
Dec 17, 2024

Conversation

thvdveld
Copy link
Owner

When the PAN IDs are equal, then PAN ID compression is used, removing the source PAN ID from the frame. The same behaviour was observed when the PAN IDs were different, which is incorrect. This commit fixes the issue by only compressing the source PAN ID when the PAN IDs are equal.

Fixes #29.

When the PAN IDs are equal, then PAN ID compression is used, removing
the source PAN ID from the frame. The same behaviour was observed when
the PAN IDs were different, which is incorrect. This commit fixes the
issue by only compressing the source PAN ID when the PAN IDs are equal.
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.86%. Comparing base (3ac06da) to head (1f235c9).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
+ Coverage   75.58%   75.86%   +0.27%     
==========================================
  Files          36       36              
  Lines        5403     5423      +20     
==========================================
+ Hits         4084     4114      +30     
+ Misses       1319     1309      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thvdveld thvdveld merged commit 7eda7ad into main Dec 17, 2024
8 of 9 checks passed
@thvdveld thvdveld deleted the fix-issue-29 branch December 17, 2024 12:01
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.

Panic on Changing set_dst_pan_id Value in Packet Creation Example
1 participant