]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: fix CH2 vdiv setting
authorBert Vermeulen <redacted>
Tue, 5 Jun 2012 16:15:58 +0000 (18:15 +0200)
committerBert Vermeulen <redacted>
Tue, 5 Jun 2012 16:18:23 +0000 (18:18 +0200)
hardware/hantek-dso/dso.c

index 1d59017970e7efc90f115a73c3c26740b8803ce8..8c6a6000f1a0776d2a5fa3db9e8d337124795c6e 100644 (file)
@@ -443,12 +443,12 @@ SR_PRIV int dso_set_voltage(struct context *ctx)
        case VDIV_2V:
        case VDIV_200MV:
        case VDIV_20MV:
-               cmdstring[2] |= 0x08;
+               cmdstring[2] |= 0x04;
                break;
        case VDIV_5V:
        case VDIV_500MV:
        case VDIV_50MV:
-               cmdstring[2] |= 0x04;
+               cmdstring[2] |= 0x08;
                break;
        }