31fl3729.c: fix shift wrong way
This commit is contained in:
parent
a675f6d19b
commit
7a11164f8d
|
@ -70,7 +70,7 @@ void is31fl3729_set_outputs(uint8_t i2c_addr, uint8_t sw, uint8_t *out, uint8_t
|
|||
|
||||
// calculate start address
|
||||
sw--;
|
||||
sw >>= 4;
|
||||
sw <<= 4;
|
||||
sw++;
|
||||
|
||||
i2c_write_addr1b(i2c_addr, sw, out, len);
|
||||
|
|
Loading…
Reference in New Issue