From: Bert Vermeulen Date: Mon, 13 Jan 2014 01:05:39 +0000 (+0100) Subject: atten-pps3xxx: Fix output channel mode get. X-Git-Tag: libsigrok-0.3.0~306 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fe997353bf0c66425997bb84a0ad1041faf2a60e;p=libsigrok.git atten-pps3xxx: Fix output channel mode get. --- diff --git a/hardware/atten-pps3xxx/api.c b/hardware/atten-pps3xxx/api.c index 3579d5c8..5ca684de 100644 --- a/hardware/atten-pps3xxx/api.c +++ b/hardware/atten-pps3xxx/api.c @@ -234,7 +234,7 @@ static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi, /* No probe group: global options. */ switch (key) { 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; case SR_CONF_OVER_CURRENT_PROTECTION: *data = g_variant_new_boolean(devc->over_current_protection);