mirror of
https://github.com/meshtastic/python.git
synced 2025-12-31 03:47:55 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user