mirror of
https://github.com/kawasaki/pyscrlink.git
synced 2025-09-05 01:00:23 +02:00
Recently, scratch link connection failure is reported. Similar failure is observed with my environment. I found BTLEDisconnectError happens at scanner.scan(). Though the true cause of the failure is not yet known, I found simple retry of scanner.scan() avoids the failure. As a temporary work around, implement -r or --scan_retry option which specify how many times to retry the scan. I confirmed that "-r 2" option avoided the failure. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>