fx2lafw: silence error message in query for channel group's device options
The fx2lafw(4) driver supports mere logic analyzers as well as mixed signal devices, but does not support channel group specific device options. Avoid an error message when channel group device options get queried, the condition is perfectly legal and non-fatal. How to reproduce: $ pulseview -d fx2lafw $ sigrok-cli -d fx2lafw -g Logic --show This fixes bug #1267.
This commit is contained in:
parent
1372bdcdb5
commit
4be5746d1d
|
@ -541,6 +541,8 @@ static int config_list(uint32_t key, GVariant **data,
|
|||
switch (key) {
|
||||
case SR_CONF_SCAN_OPTIONS:
|
||||
case SR_CONF_DEVICE_OPTIONS:
|
||||
if (cg)
|
||||
return SR_ERR_NA;
|
||||
return STD_CONFIG_LIST(key, data, sdi, cg, scanopts, drvopts, devopts);
|
||||
case SR_CONF_SAMPLERATE:
|
||||
if (!devc)
|
||||
|
|
Loading…
Reference in New Issue