diff options
author | Chris Liechti <cliechti@gmx.net> | 2016-03-24 21:17:22 +0100 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2016-03-24 21:17:22 +0100 |
commit | 7a554461f3c05b0f3f2d58314ee9834b1c8ef8df (patch) | |
tree | fa9e02abb4810973c787d1b56df05bd876e5495f /serial/serialposix.py | |
parent | 4daa9d54af41e8f9a9cff402028f040a7a5d0a39 (diff) | |
download | pyserial-git-7a554461f3c05b0f3f2d58314ee9834b1c8ef8df.tar.gz |
serialposix: apply patch: native RS485 is never enabled, fixes #96
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r-- | serial/serialposix.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ if plat[:5] == 'linux': # Linux (confirmed) # noqa 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 |