From: Bert Vermeulen Date: Mon, 10 Sep 2012 19:27:50 +0000 (+0200) Subject: agilent-dmm: fix model identifiers X-Git-Tag: dsupstream~698 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b186aa78b8302942c8853c9aed40e3e5eaba8e34;p=libsigrok.git agilent-dmm: fix model identifiers --- diff --git a/hardware/agilent-dmm/agilent-dmm.h b/hardware/agilent-dmm/agilent-dmm.h index 978e13fa..179d0013 100644 --- a/hardware/agilent-dmm/agilent-dmm.h +++ b/hardware/agilent-dmm/agilent-dmm.h @@ -25,7 +25,12 @@ /* Supported models */ enum { - AGILENT_U1232A = 1, + AGILENT_U1231A = 1, + AGILENT_U1232A, + AGILENT_U1233A, + AGILENT_U1251A, + AGILENT_U1252A, + AGILENT_U1253A, }; /* Supported device profiles */ diff --git a/hardware/agilent-dmm/api.c b/hardware/agilent-dmm/api.c index 3d6c3350..29e7d15f 100644 --- a/hardware/agilent-dmm/api.c +++ b/hardware/agilent-dmm/api.c @@ -53,12 +53,12 @@ extern const struct agdmm_job agdmm_jobs_u125x[]; extern const struct agdmm_recv agdmm_recvs_u125x[]; static const struct agdmm_profile supported_agdmm[] = { - { AGILENT_U1232A, "U1231A", 9600, agdmm_jobs_u123x, agdmm_recvs_u123x }, + { AGILENT_U1231A, "U1231A", 9600, agdmm_jobs_u123x, agdmm_recvs_u123x }, { AGILENT_U1232A, "U1232A", 9600, agdmm_jobs_u123x, agdmm_recvs_u123x }, - { AGILENT_U1232A, "U1233A", 9600, agdmm_jobs_u123x, agdmm_recvs_u123x }, - { AGILENT_U1232A, "U1251A", 9600, agdmm_jobs_u125x, agdmm_recvs_u125x }, - { AGILENT_U1232A, "U1252A", 9600, agdmm_jobs_u125x, agdmm_recvs_u125x }, - { AGILENT_U1232A, "U1253A", 9600, agdmm_jobs_u125x, agdmm_recvs_u125x }, + { AGILENT_U1233A, "U1233A", 9600, agdmm_jobs_u123x, agdmm_recvs_u123x }, + { AGILENT_U1251A, "U1251A", 9600, agdmm_jobs_u125x, agdmm_recvs_u125x }, + { AGILENT_U1252A, "U1252A", 9600, agdmm_jobs_u125x, agdmm_recvs_u125x }, + { AGILENT_U1253A, "U1253A", 9600, agdmm_jobs_u125x, agdmm_recvs_u125x }, { 0, NULL, 0, NULL, NULL } };