paller / wavin-controller

A controller for Wavin AHC 9000 written in Python with focus for use in home-automation.
11 stars 4 forks source link

Use dynamical timeout #4

Closed paller closed 5 years ago

paller commented 6 years ago

Instead of using a fixed timeout of 5 seconds for all serial communication it should be dynamical based on the amount of data to read or write.

Calculate the timeout based on the amount of data to transfer and baud rate.

paller commented 5 years ago

As the communication isn't as unstable after #5 was fixed it doesn't seem to make much difference.