diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-12 18:23:25 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-12-12 18:31:47 -0800 |
commit | bd0f01a8de05fcbf626edc973c237dc05395aff5 (patch) | |
tree | e4a2983a52ee863a809eb4a94a1effa154048f30 /camera.h | |
parent | c114818dc03b58623469400ae62e2466fbcacafc (diff) |
Refactor serial helpers to make resets easier
We were experience issues where the readPicture command would become
unresponsive after exactly 10 reads 32 bytes in size. We were able to
"solve" this by simply closing and re-opening the serial connection file
descriptor after reading a block. This may be a limitation in the le_tty
interface meaning it may be worth implementing this using only Linux
system calls (e.g open et al).
The sendCommand function now pays attention to the return status of the
calls to fd helpers.
Diffstat (limited to 'camera.h')
0 files changed, 0 insertions, 0 deletions