fixes for 1.2 api

This commit is contained in:
Kevin Hester
2021-02-23 14:30:49 +08:00
parent 5c6302917e
commit 3ef6c5e3ab

View File

@@ -457,11 +457,6 @@ class MeshInterface:
# asObj = DotMap(asDict)
topic = "meshtastic.receive" # Generic unknown packet type
# Warn users if firmware doesn't use new portnum based data encodings
# But do not crash, because the lib will still basically work and ignore those packet types
if meshPacket.decoded.HasField("user") or meshPacket.decoded.HasField("position"):
logging.warn("Ignoring old position/user message. Recommend you update firmware to 1.1.20 or later")
# The default MessageToDict converts byte arrays into base64 strings.
# We don't want that - it messes up data payload. So slam in the correct
# byte array.