We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5065c84 + 778f92b commit 4a722f7Copy full SHA for 4a722f7
src/encoders/as5600/AS5600.cpp
@@ -124,13 +124,13 @@ void AS5600::setZPos(uint16_t value) {
124
void AS5600::setI2CAddr(uint8_t value) {
125
uint8_t val = (uint8_t)readRegister(AS5600_REG_I2CADDR, 1);
126
val = (value<<1) | (val&0x01);
127
- writeRegister(AS5600_REG_I2CADDR, val);
+ writeRegister(AS5600_REG_I2CADDR, val, 1);
128
};
129
130
void AS5600::setI2CUpdt(uint8_t value) {
131
uint8_t val = (uint8_t)readRegister(AS5600_REG_I2CUPDT, 1);
132
133
- writeRegister(AS5600_REG_I2CUPDT, val);
+ writeRegister(AS5600_REG_I2CUPDT, val, 1);
134
135
136
0 commit comments