Skip to content

Commit

Permalink
issue #17: frame: Fix SABM and SABME bit flip.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlongland committed May 4, 2024
1 parent cb17fa6 commit fa54f4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aioax25/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ class AX25SetAsyncBalancedModeFrame(AX25BaseUnnumberedFrame):
AX.25 node.
"""

MODIFIER = 0b01101111
MODIFIER = 0b00101111
CR = True


Expand All @@ -1224,7 +1224,7 @@ class AX25SetAsyncBalancedModeExtendedFrame(AX25BaseUnnumberedFrame):
AX.25 node, using modulo 128 acknowledgements.
"""

MODIFIER = 0b00101111
MODIFIER = 0b01101111
CR = True


Expand Down
4 changes: 2 additions & 2 deletions tests/test_frame/test_uframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_decode_sabm():
from_hex(
"ac 96 68 84 ae 92 e0" # Destination
"ac 96 68 9a a6 98 61" # Source
"6f" # Control byte
"2f" # Control byte
)
)
assert isinstance(
Expand All @@ -59,7 +59,7 @@ def test_decode_sabm_payload():
from_hex(
"ac 96 68 84 ae 92 e0" # Destination
"ac 96 68 9a a6 98 61" # Source
"6f" # Control byte
"2f" # Control byte
"11 22 33 44 55" # Payload
)
)
Expand Down

0 comments on commit fa54f4a

Please sign in to comment.