From: Gerhard Sittig Date: Sun, 9 Jun 2019 07:55:39 +0000 (+0200) Subject: serial-dmm: alpha-sort check for devices with multiple displays X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=db3aac1a295a778657935e100438bc0552ffeaaa;p=libsigrok.git serial-dmm: alpha-sort check for devices with multiple displays --- diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c index e8960dc3..98bf7fb2 100644 --- a/src/hardware/serial-dmm/api.c +++ b/src/hardware/serial-dmm/api.c @@ -133,12 +133,12 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sdi->conn = serial; sdi->priv = devc; dmm->channel_count = 1; - if (dmm->packet_parse == sr_metex14_4packets_parse) - dmm->channel_count = 4; if (dmm->packet_parse == sr_eev121gw_3displays_parse) { dmm->channel_count = EEV121GW_DISPLAY_COUNT; dmm->channel_formats = eev121gw_channel_formats; } + if (dmm->packet_parse == sr_metex14_4packets_parse) + dmm->channel_count = 4; if (dmm->packet_parse == sr_ms2115b_parse) { dmm->channel_count = MS2115B_DISPLAY_COUNT; dmm->channel_formats = ms2115b_channel_formats;