mathiasfrey / ecrterm

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

Circumvent "port is already open" #1

Closed pc-coholic closed 11 years ago

pc-coholic commented 11 years ago

Running the test_pt.py-script, there was an error, that the serialport was already open.

This seems to be caused by the fact, that the function in transport_serial.py is called multiple times - even when the port is already open.

This somewhat fixes the problem.