]> sigrok.org Git - libsigrok.git/commitdiff
hantek-6xxx: Hantek 6022BL: Add VID/PID 04b5:602a support.
authorUwe Hermann <redacted>
Tue, 2 Oct 2018 13:15:27 +0000 (15:15 +0200)
committerUwe Hermann <redacted>
Tue, 2 Oct 2018 13:15:27 +0000 (15:15 +0200)
On Windows, this device can either enumerate as 04b4:602a or 04b5:602a,
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 #1295.

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

index 97156a6f12f0d8cc5df067abe405e9e4254391fd..07fd2cbf7dcd8f806ab2aad2d7e15fe29e703984 100644 (file)
@@ -78,10 +78,17 @@ static const struct hantek_6xxx_profile dev_profiles[] = {
                ARRAY_AND_SIZE(acdc_coupling), TRUE,
        },
        {
+               /* Windows: "Hantek6022BL DRIVER 1": 04b4:602a */
                0x04b4, 0x602a, 0x1d50, 0x608e, 0x0003,
                "Hantek", "6022BL", "fx2lafw-hantek-6022bl.fw",
                ARRAY_AND_SIZE(dc_coupling), FALSE,
        },
+       {
+               /* Windows: "Hantek6022BL DRIVER 2": 04b5:602a */
+               0x04b5, 0x602a, 0x1d50, 0x608e, 0x0003,
+               "Hantek", "6022BL", "fx2lafw-hantek-6022bl.fw",
+               ARRAY_AND_SIZE(dc_coupling), FALSE,
+       },
        ALL_ZERO
 };