mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-09-14 17:56:38 +00:00
Merge pull request #104 from PY5HC/fix/serial-dtr-handling
Fix serial DTR handling
This commit is contained in:
@@ -41,6 +41,7 @@ class SerialConnection:
|
|||||||
self.cx.transport = transport
|
self.cx.transport = transport
|
||||||
logger.debug('port opened')
|
logger.debug('port opened')
|
||||||
if isinstance(transport, serial_asyncio.SerialTransport) and transport.serial:
|
if isinstance(transport, serial_asyncio.SerialTransport) and transport.serial:
|
||||||
|
transport.serial.dtr = False # Deassert DTR to avoid serial-open reset/handshake issues
|
||||||
transport.serial.rts = False # You can manipulate Serial object via transport
|
transport.serial.rts = False # You can manipulate Serial object via transport
|
||||||
self.cx._connected_event.set()
|
self.cx._connected_event.set()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user