mirror of
https://github.com/meshtastic/python.git
synced 2025-12-31 03:47:55 -05:00
1.1.22 make deprecation message just a warning
This commit is contained in:
@@ -539,7 +539,7 @@ class MeshInterface:
|
||||
# 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.error("The device firmware is too old to work with this version of the python library. Please update firmware to 1.20 or later")
|
||||
logging.warn("Ignoring old position/user message. Recommend you update firmware to 1.1.20 or later")
|
||||
|
||||
if meshPacket.decoded.HasField("data"):
|
||||
|
||||
@@ -1383,7 +1383,7 @@ noProto – If True, don't try to run our protocol on the link - just be a d
|
||||
# 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.error("The device firmware is too old to work with this version of the python library. Please update firmware to 1.20 or later")
|
||||
logging.warn("Ignoring old position/user message. Recommend you update firmware to 1.1.20 or later")
|
||||
|
||||
if meshPacket.decoded.HasField("data"):
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ class MeshInterface:
|
||||
# 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("The device firmware is using the old position/user format. Recommend you update firmware to 1.1.20 or later")
|
||||
logging.warn("Ignoring old position/user message. Recommend you update firmware to 1.1.20 or later")
|
||||
|
||||
if meshPacket.decoded.HasField("data"):
|
||||
|
||||
|
||||
2
setup.py
2
setup.py
@@ -12,7 +12,7 @@ with open("README.md", "r") as fh:
|
||||
# This call to setup() does all the work
|
||||
setup(
|
||||
name="meshtastic",
|
||||
version="1.1.21",
|
||||
version="1.1.22",
|
||||
description="Python API & client shell for talking to Meshtastic devices",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
|
||||
Reference in New Issue
Block a user