]> sigrok.org Git - libsigrok.git/commitdiff
hantek-6xxx: Hantek 6022BE: Add VID/PID 04b5:6022 support.
authorUwe Hermann <redacted>
Mon, 3 Sep 2018 20:01:32 +0000 (22:01 +0200)
committerUwe Hermann <redacted>
Mon, 3 Sep 2018 20:01:32 +0000 (22:01 +0200)
On Windows, this device can either enumerate as 04b4:6022 or 04b5:6022,
depending on which vendor driver is currently being used, so we have to
support both in the hantek-6xxx driver as well.

This fixes bug #918.

src/hardware/hantek-6xxx/api.c

index 59b27c2c666163e397e3eb97c0e8cc4dc01e779f..97156a6f12f0d8cc5df067abe405e9e4254391fd 100644 (file)
@@ -61,10 +61,17 @@ static const char *acdc_coupling[] = {
 
 static const struct hantek_6xxx_profile dev_profiles[] = {
        {
+               /* Windows: "Hantek6022BE DRIVER 1": 04b4:6022 */
                0x04b4, 0x6022, 0x1d50, 0x608e, 0x0001,
                "Hantek", "6022BE", "fx2lafw-hantek-6022be.fw",
                ARRAY_AND_SIZE(dc_coupling), FALSE,
        },
+       {
+               /* Windows: "Hantek6022BE DRIVER 2": 04b5:6022 */
+               0x04b5, 0x6022, 0x1d50, 0x608e, 0x0001,
+               "Hantek", "6022BE", "fx2lafw-hantek-6022be.fw",
+               ARRAY_AND_SIZE(dc_coupling), FALSE,
+       },
        {
                0x8102, 0x8102, 0x1d50, 0x608e, 0x0002,
                "Sainsmart", "DDS120", "fx2lafw-sainsmart-dds120.fw",