]> sigrok.org Git - libsigrok.git/commitdiff
link-mso19: Fixed led toggling (the bit masking was not being proprly done).
authorRenato Caldas <redacted>
Thu, 12 Jan 2012 11:50:50 +0000 (11:50 +0000)
committerRenato Caldas <redacted>
Thu, 19 Jan 2012 11:12:01 +0000 (11:12 +0000)
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);