commit | 7a554461f3c05b0f3f2d58314ee9834b1c8ef8df | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Thu Mar 24 21:17:22 2016 +0100 |
committer | Chris Liechti <cliechti@gmx.net> | Thu Mar 24 21:17:22 2016 +0100 |
tree | fa9e02abb4810973c787d1b56df05bd876e5495f | |
parent | 4daa9d54af41e8f9a9cff402028f040a7a5d0a39 [diff] [blame] |
serialposix: apply patch: native RS485 is never enabled, fixes #96
diff --git a/serial/serialposix.py b/serial/serialposix.py index 2dca984..70fb241 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py
@@ -131,6 +131,7 @@ buf = array.array('i', [0] * 8) # flags, delaytx, delayrx, padding try: fcntl.ioctl(self.fd, TIOCGRS485, buf) + buf[0] |= SER_RS485_ENABLED if rs485_settings is not None: if rs485_settings.loopback: buf[0] |= SER_RS485_RX_DURING_TX