This branch fixes a confusing TypeError if the port is already open by another process.
This is only a temporary quick & dirty solution until the real cause of the TypeError is fixed! Until then I check if connection is lost due to a SerialException and send its exception message to stderr. This message says: "read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)"
The first commit increases the log level of message "connected to " so that one "-v" is enough to show it.
This branch fixes a confusing TypeError if the port is already open by another process.
This is only a temporary quick & dirty solution until the real cause of the TypeError is fixed! Until then I check if connection is lost due to a SerialException and send its exception message to stderr. This message says: "read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)"
The first commit increases the log level of message "connected to " so that one "-v" is enough to show it.