Bristol-Braille / canute-ui

User interface for the Canute electronic Braille reader.
http://bristolbraille.co.uk
GNU General Public License v3.0
36 stars 6 forks source link

Detect potential USB B disconnection #280

Closed woodcoder closed 1 year ago

woodcoder commented 1 year ago

Following discussion, the code change now simply detects socket timeouts and returns an exit code of 2 when these happen.

This is indicative of the USB B port being used, but could also mean a slow start up - external logic is required to distinguish between the two cases.