Skip to content

Commit e34ed35

Browse files
committed
Add struct element read to example.py
1 parent 1108985 commit e34ed35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
libfap.fap_init()
1717
try:
1818
while 1:
19-
packet_str = sock_file.readline().strip()
19+
packet_str = sock_file.readline()
2020
packet = libfap.fap_parseaprs(packet_str, len(packet_str), 0)
21-
print '%s' % (packet[0])
21+
print '%s %s' % (packet[0].src_callsign, packet[0].body)
2222
libfap.fap_free(packet)
2323
except KeyboardInterrupt:
2424
pass

0 commit comments

Comments
 (0)