serial-dmm: alpha-sort check for devices with multiple displays

This commit is contained in:
Gerhard Sittig 2019-06-09 09:55:39 +02:00
parent 684b26ef18
commit db3aac1a29
1 changed files with 2 additions and 2 deletions

View File

@ -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;