From 3ef6c5e3abc876564c444701abd1304ea86b3990 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 23 Feb 2021 14:30:49 +0800 Subject: [PATCH] fixes for 1.2 api --- meshtastic/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 794327e..2ecb871 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -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.