From fe997353bf0c66425997bb84a0ad1041faf2a60e Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 13 Jan 2014 02:05:39 +0100 Subject: [PATCH] atten-pps3xxx: Fix output channel mode get. --- hardware/atten-pps3xxx/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);