]> sigrok.org Git - libsigrok.git/commit
kingst-la2016: adjust config param checks, threshold range check
authorGerhard Sittig <redacted>
Sun, 30 Jan 2022 10:32:32 +0000 (11:32 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commitc35baf6eb0b0b2bc7b1240809775eca1927ca199
treef6bb47169e0697b52e55a591d262a7a8f07b8886
parentb1e8446fdb270c3303b3ca90c854c1ea608cfa39
kingst-la2016: adjust config param checks, threshold range check

After scan() completed the conn= can no longer be unknown. The firmware
was loaded and became effective (and communication was tested) before we
get to the config getter. Check PWM period and duty cycle value ranges
in the config setter.

Use symbolic names in the threshold voltage range check when protocol.c
forwards the configured value to the device.
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.c