show: mark currently selected samplerate item in samplerates lists
commit917c8f83ba2f01677aec2b37aa2d6ae924171ff9
authorGerhard Sittig <gerhard.sittig@gmx.net>
Sun, 10 May 2020 17:40:38 +0000 (10 19:40 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Sat, 23 May 2020 14:23:29 +0000 (23 16:23 +0200)
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