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 committed 2020-09-12 12:31:05 -07:00
1 parent 33b31d0fb2
commit e485af752b
3 files changed
+4 -1

No files matched your search

+2
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)