]> sigrok.org Git - sigrok-cli.git/commit
show: mark currently selected samplerate item in samplerates lists
authorGerhard Sittig <redacted>
Sun, 10 May 2020 17:40:38 +0000 (19:40 +0200)
committerGerhard Sittig <redacted>
Sat, 23 May 2020 14:23:29 +0000 (16:23 +0200)
commit917c8f83ba2f01677aec2b37aa2d6ae924171ff9
treec7d9a9ec4fe105547cc7c859bc84529519039a16
parent172d2b302de1d973dd15add0184e90d336c953bc
show: mark currently selected samplerate item in samplerates lists

Get the current value as well as the list for SR_CONF_SAMPLERATE keys,
and add the "(current)" marker to a list item when a match was found.

  $ sigrok-cli -d fx2lafw --show
show.c