]> sigrok.org Git - libsigrok.git/commit
rdtech-tc: detect receive and parse errors, terminate acquisition
authorGerhard Sittig <redacted>
Thu, 16 Mar 2023 03:03:04 +0000 (04:03 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commit269f1e0e49d52833183890ef6edffd8739081c88
tree771a4e018a768b09a9bb67993de45f8a88dc14e1
parenta82490b6f7ea4a65a45d96e1a55c7bd74a4e49c1
rdtech-tc: detect receive and parse errors, terminate acquisition

Pepper the code paths from main loop calls via serial reception to
data processing with return code checks and error handling. Terminate
acquisition when communication or data processing fail.

Check whether acquisition limits were reached immediately after more
values were submitted. Keep a periodic check in the main loop call to
handle duration limits.

Comment on essential steps in the execution sequence.
src/hardware/rdtech-tc/protocol.c