]> sigrok.org Git - libsigrok.git/commit
sysclk-lwla: Attempt initialization three times
authorDaniel Elstner <redacted>
Tue, 22 Dec 2015 14:52:40 +0000 (15:52 +0100)
committerDaniel Elstner <redacted>
Tue, 22 Dec 2015 15:09:39 +0000 (16:09 +0100)
commite35a4592488d7492a46921dd8bd130eae5faf11a
tree9fdef6c5a8f1bcff2ae166f282d7abbfe75c808c
parent04f2428354068c6ed85ad090dd4baac253e940c4
sysclk-lwla: Attempt initialization three times

This is a desperate measure to improve the success rate of device
initialization even after it got into a bad state. Combine this
with a reduced USB timeout (1 second) so that if it fails, it fails
quickly. Also ignore USB errors from the initial dummy read of the
device test ID.
src/hardware/sysclk-lwla/api.c
src/hardware/sysclk-lwla/lwla1016.c
src/hardware/sysclk-lwla/lwla1034.c
src/hardware/sysclk-lwla/protocol.h