link-mso19: Fixed led toggling (the bit masking was not being proprly done).

This commit is contained in:
Renato Caldas 2012-01-12 11:50:50 +00:00
parent e084a8042e
commit f020a99773
1 changed files with 1 additions and 1 deletions

View 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);