OS-X was rebooting devices on connect, force RTS false

(RTS is connected to ESP32 reset).  Thanks to @mc-hamster for this fix!
This commit is contained in:
geeksville
2020-09-12 12:30:19 -07:00
parent 33b31d0fb2
commit e485af752b
3 changed files with 4 additions and 1 deletions

View File

@@ -501,6 +501,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)
@@ -1227,6 +1228,7 @@ debugOut {stream} – If a stream is provided, any debug serial output from
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)