mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-23 18:15:57 -05:00
Added fix for an unknown packet type
If we get a packet that doesn't have a message in it, nor an ack, we don't know what to do with it, so log it and then stop processing it.
This commit is contained in:
parent
e68d3f92e1
commit
b2609548f2
@ -4,6 +4,7 @@ CHANGES
|
||||
v1.1.0
|
||||
------
|
||||
|
||||
* Added fix for an unknown packet type
|
||||
* Ensure fortune is installed
|
||||
* Updated docker-compose
|
||||
* Added Changelog
|
||||
@ -11,6 +12,7 @@ v1.1.0
|
||||
* Updated the aprsd-slack-plugin required version
|
||||
* Updated README.rst
|
||||
* Fixed send-message with email command and others
|
||||
* Update .gitignore
|
||||
* Big patch
|
||||
* Major refactor
|
||||
* Updated the Dockerfile to use alpine
|
||||
|
@ -192,6 +192,10 @@ def process_packet(packet):
|
||||
)
|
||||
messaging.ack_dict.update({int(ack_num): 1})
|
||||
return
|
||||
else:
|
||||
LOG.info("Don't know what to do with this message. Ignoring")
|
||||
messaging.log_packet(packet)
|
||||
return
|
||||
|
||||
msg_number = packet.get("msgNo", None)
|
||||
if msg_number:
|
||||
|
Loading…
Reference in New Issue
Block a user