From: Renato Caldas Date: Thu, 12 Jan 2012 11:50:50 +0000 (+0000) Subject: link-mso19: Fixed led toggling (the bit masking was not being proprly done). X-Git-Tag: libsigrok-0.1.0~169 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f020a99773d1431ee58090e9515dc19b10e7463f;p=libsigrok.git link-mso19: Fixed led toggling (the bit masking was not being proprly done). --- diff --git a/hardware/link-mso19/link-mso19.c b/hardware/link-mso19/link-mso19.c index fb27c6c4..f6fe115b 100644 --- a/hardware/link-mso19/link-mso19.c +++ b/hardware/link-mso19/link-mso19.c @@ -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);