Skip to content

Commit 7fd101c

Browse files
committed
Update protos and fix error
1 parent b6e1610 commit 7fd101c

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

meshtastic/mesh_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def _handlePacketFromRadio(self, meshPacket, hack=False):
675675
# UNKNOWN_APP is the default protobuf portnum value, and therefore if not
676676
# set it will not be populated at all to make API usage easier, set
677677
# it to prevent confusion
678-
if "portnum" not in decoded:
678+
if decoded and "portnum" not in decoded:
679679
new_portnum = portnums_pb2.PortNum.Name(portnums_pb2.PortNum.UNKNOWN_APP)
680680
decoded["portnum"] = new_portnum
681681
logging.warning(f"portnum was not in decoded. Setting to:{new_portnum}")

meshtastic/module_config_pb2.py

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto

Submodule proto updated from d8213ad to a729839

0 commit comments

Comments
 (0)