agilent-dmm: add support for Keysight branded meters

This commit is contained in:
Aurelien Jacobs 2016-06-12 01:48:15 +02:00
parent 0fe18626bd
commit 9ae544b6ce
1 changed files with 3 additions and 2 deletions

View File

@ -117,14 +117,15 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
return NULL;
tokens = g_strsplit(buf, ",", 4);
if (!strcmp("Agilent Technologies", tokens[0])
if ((!strcmp("Agilent Technologies", tokens[0]) ||
!strcmp("Keysight Technologies", tokens[0]))
&& tokens[1] && tokens[2] && tokens[3]) {
for (i = 0; supported_agdmm[i].model; i++) {
if (strcmp(supported_agdmm[i].modelname, tokens[1]))
continue;
sdi = g_malloc0(sizeof(struct sr_dev_inst));
sdi->status = SR_ST_INACTIVE;
sdi->vendor = g_strdup("Agilent");
sdi->vendor = g_strdup(tokens[0][0] == 'A' ? "Agilent" : "Keysight");
sdi->model = g_strdup(tokens[1]);
sdi->version = g_strdup(tokens[3]);
devc = g_malloc0(sizeof(struct dev_context));