mathiasfrey / ecrterm

Python ZVT 700 interface (electronic cash registers)
GNU Lesser General Public License v3.0
34 stars 31 forks source link

setTimeout not in pySerial anymore #5

Open Leon-001 opened 8 years ago

Leon-001 commented 8 years ago

Hi Mathias, at first: thanks for the great work!

I just had the following problem after upgrading my operating system: the connection to the EC-Terminal was not possible anymore.

The reason: The function setTimeout does not exist in current pySerial anymore.

I think it should be changed to self.connection.timeout = timeout

In the file transmission/transport_serial.py (line 156 and 171)

Kind regards, Leon

raphaelm commented 7 years ago

My PR https://github.com/mathiasfrey/ecrterm/pull/6 fixes this along the way