This commit is contained in:
Mike Kinney
2021-12-29 20:51:46 -08:00
parent 75fe7622a4
commit c7d981ec35

View File

@@ -41,7 +41,7 @@ class SerialInterface(StreamInterface):
# first we need to set the HUPCL so the device will not reboot based on RTS and/or DTR
# see https://github.com/pyserial/pyserial/issues/124
if not self.noProto:
if platform.system() != 'windows':
if platform.system() != 'Windows':
with open(devPath, encoding='utf8') as f:
attrs = termios.tcgetattr(f)
attrs[2] = attrs[2] & ~termios.HUPCL