]> sigrok.org Git - libsigrok.git/commit
rdtech-tc: request keyword differs between CDC and BLE transports
authorGerhard Sittig <redacted>
Sun, 19 Mar 2023 15:02:45 +0000 (16:02 +0100)
committerGerhard Sittig <redacted>
Sun, 19 Mar 2023 21:40:08 +0000 (22:40 +0100)
commit37b689533bc9655600c23773d06307a4ab63bb3b
tree2529822c38c3bb1989724e9922304c93d4074a02
parente2bcf2e3b4190877c64ffdbb6a99d64a063cc402
rdtech-tc: request keyword differs between CDC and BLE transports

The TC66C firmware implements different keywords and different request
terminators across the USB CDC and the Bluetooth LE transports. Move the
string literal to the probe routine, construct the request text at the
time when the device is probed, then re-use it for the remaining session.

Check the receive buffer size and maximum reponse length for consistency
at compile time. Declarations are spread across source files.
src/hardware/rdtech-tc/protocol.c
src/hardware/rdtech-tc/protocol.h