mipops/digividcommander

shorten timeout for sony9pin

Opened this issue · 2 comments

Currently, if the cable is plugged into the computer, but unattached at the deck side, the command will wait for a full minute. For instance, $ sony9pin 8 1 takes a minute before ending with an error. I suggest reducing the timeout. When the deck is attached, the slowest response to this command was 0.113 seconds.

In some other places in the code we have a timeout of 1s, let's be coherent and use 1s everywhere.

Hmmm, on most recent build the time out is a little less than a full minute now:

$ time sony9pin 8 p
Error: get device status failed.

real	0m49.267s
user	0m0.312s
sys	0m0.744s