From d6a4dc71fac097c50450d6abf9e66440720935ee Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Thu, 24 Dec 2020 11:02:08 +0800 Subject: [PATCH] don't apply the CTS hack on linux, it breaks the reset button --- meshtastic/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 49ae9a6..4ca31cb 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -731,7 +731,9 @@ class SerialInterface(StreamInterface): # control and will always drive RTS either high or low (rather than letting the CP102 leave # it as an open-collector floating pin). Since it is going to drive it anyways we want to make # sure it is driven low, so that the TBEAM won't reset - self.stream.rts = False + # Linux does this properly, so don't apply this hack (because it makes the reset button not work) + if platform.system() != 'Linux': + self.stream.rts = False self.stream.open() StreamInterface.__init__(