]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/api.c
kingst-la2016: concentrate magic numbers in central location
authorGerhard Sittig <redacted>
Sat, 22 Jan 2022 10:06:32 +0000 (11:06 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commit852c7d1483a02e0937b7a7ce0936df17692bac34
tree416e0b7760566c7250e9bca8e9eba59834ea3f65
parentb0d0131eff8bacbf69aa0da818efaa4439f19a64
kingst-la2016: concentrate magic numbers in central location

Eliminate open coded magic values which are spilled across the driver's
implementation. Concentrate tunables or derived values in a central spot
at the top of the source files near other declarations. Rephrase some
values to better reflect their purpose or magnitude.

Few values remain dubious. Add TODO comments for awareness.
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.c
src/hardware/kingst-la2016/protocol.h