]> sigrok.org Git - libsigrok.git/commit
tekpower-dmm: Improve serial detection.
authorAlexandru Gagniuc <redacted>
Fri, 2 Nov 2012 15:53:06 +0000 (10:53 -0500)
committerUwe Hermann <redacted>
Wed, 14 Nov 2012 17:13:56 +0000 (18:13 +0100)
commit2546b05c801c90a84fb2e6690d8c253c6576b4ab
tree4afb189fb9d8f85df12b1c7dd71f0b0f8042bb39
parentbda8fc98b1eae0fbd7c57b9da705bfce4384756a
tekpower-dmm: Improve serial detection.

Serial detection was using serial_readline, which stripped carriage
return from the packets. This made for a very unreliable detection
mechanism.

Switch to a timeout-based detection mechanism that parses the data
as it comes in. This also allows us to stop parsing once we found
our first valid packet.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/tekpower-dmm/api.c