]> sigrok.org Git - libsigrok.git/blobdiff - hardware/link-mso19/link-mso19.c
link-mso19: Fixed led toggling (the bit masking was not being proprly done).
[libsigrok.git] / hardware / link-mso19 / link-mso19.c
index fb27c6c438a2a67fda3879d16c4d232f25c2cfcc..f6fe115b3a9a10358918601f2bf7d9be1c5dd4b3 100644 (file)
@@ -168,7 +168,7 @@ static int mso_toggle_led(struct sr_device_instance *sdi, int state)
        struct mso *mso = sdi->priv;
        uint16_t ops[1];
 
-       mso->ctlbase1 &= BIT_CTL1_LED;
+       mso->ctlbase1 &= ~BIT_CTL1_LED;
        if (state)
                mso->ctlbase1 |= BIT_CTL1_LED;
        ops[0] = mso_trans(REG_CTL1, mso->ctlbase1);