atten-pps3xxx: Fix output channel mode get.
This commit is contained in:
parent
2388ae860c
commit
fe997353bf
|
@ -234,7 +234,7 @@ static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi,
|
||||||
/* No probe group: global options. */
|
/* No probe group: global options. */
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case SR_CONF_OUTPUT_CHANNEL:
|
case SR_CONF_OUTPUT_CHANNEL:
|
||||||
*data = g_variant_new_string(channel_modes[devc->channel_mode - 1]);
|
*data = g_variant_new_string(channel_modes[devc->channel_mode]);
|
||||||
break;
|
break;
|
||||||
case SR_CONF_OVER_CURRENT_PROTECTION:
|
case SR_CONF_OVER_CURRENT_PROTECTION:
|
||||||
*data = g_variant_new_boolean(devc->over_current_protection);
|
*data = g_variant_new_boolean(devc->over_current_protection);
|
||||||
|
|
Loading…
Reference in New Issue