Skip to content

Commit

Permalink
tools.call: Don't use magic numbers for PID.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlongland committed May 7, 2024
1 parent 4202223 commit c11b587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aioax25/tools/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# from aioax25.kiss import …
# from aioax25.interface import …
# etc… if you're copying this for your own code
from ..frame import AX25Frame
from ..kiss import make_device, KISSDeviceState
from ..interface import AX25Interface
from ..station import AX25Station
Expand Down Expand Up @@ -42,7 +43,7 @@ def __init__(self, source, destination, kissparams, port=0):

def _on_receive(self, frame, **kwargs):
with patch_stdout():
if frame.pid == 0xF0:
if frame.pid == AX25Frame.PID_NO_L3:
# No L3 protocol
print("\n".join(frame.payload.decode().split("\r")))
else:
Expand Down

0 comments on commit c11b587

Please sign in to comment.