From 0079a725a24d63f8049d3a8bef113282a4f6fcce Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Thu, 17 Dec 2020 11:25:07 +0800 Subject: [PATCH] bug #41 per finding of @timgunter (Tim - I think this is what you said, can you confirm it works for you) --- meshtastic/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 3a4e2ce..fe242b3 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -731,8 +731,7 @@ 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 - if platform.system() != 'Linux': - self.stream.rts = False + self.stream.rts = False self.stream.open() StreamInterface.__init__( @@ -741,9 +740,6 @@ class SerialInterface(StreamInterface): def _disconnected(self): """We override the superclass implementation to close our port""" - if platform.system() != 'Linux': - self.stream.rts = True # Return RTS high, so that the reset button still works - StreamInterface._disconnected(self)