mirror of
https://github.com/meshtastic/python.git
synced 2026-01-01 20:38:03 -05:00
bug #41 per finding of @timgunter
(Tim - I think this is what you said, can you confirm it works for you)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user