]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/protocol.h
kingst-la2016: style nits in FPGA code path and threshold selection
authorGerhard Sittig <redacted>
Sun, 23 Jan 2022 20:19:38 +0000 (21:19 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commit5eb1b63dfc159144ce64c03eab54ca4d4ec9f594
treef9f83736e73158dbd8f45fadb7ff2c09137d0c36
parent084d6b927163fb0881941ad13014e07a6a5e7a77
kingst-la2016: style nits in FPGA code path and threshold selection

Check sigrok routine return codes for SR_OK not zero. The snprintf(3)
routine does include the NUL termination in the length spec. Use size_t
for the threshold selection which in essence is an enumeration.
src/hardware/kingst-la2016/protocol.c
src/hardware/kingst-la2016/protocol.h