From 23f4a50f911578eb58dc45f5045e838a7805ede4 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sat, 12 Sep 2020 12:30:19 -0700 Subject: [PATCH] OS-X was rebooting devices on connect, force RTS false (RTS is connected to ESP32 reset). Thanks to @mc-hamster for this fix! --- meshtastic/__init__.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 12a2e1d..57dbfe6 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -430,6 +430,7 @@ class StreamInterface(MeshInterface): self._wantExit = False self.stream = serial.Serial( devPath, 921600, exclusive=True, timeout=0.5) + self.stream.setRTS(False) self._rxThread = threading.Thread(target=self.__reader, args=()) MeshInterface.__init__(self, debugOut=debugOut, noProto=noProto) diff --git a/setup.py b/setup.py index 4cf0524..cc9ca80 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ with open("README.md", "r") as fh: # This call to setup() does all the work setup( name="meshtastic", - version="1.0.3", + version="1.0.4", description="Python API & client shell for talking to Meshtastic devices", long_description=long_description, long_description_content_type="text/markdown",