We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cfeae5 commit ad26ec4Copy full SHA for ad26ec4
src/MT6701_I2C.cpp
@@ -376,6 +376,7 @@ word MT6701I2C::getOutputResolutionABZ(void) {
376
void MT6701I2C::setOutputResolutionABZ(word _resolution) {
377
uint8_t reg_l = (_resolution - 1) & 0xFF;
378
uint8_t reg_h = MT_RequestSingleRegister(MT6701_I2C_EEPROM_ABZ_RES_REG_H);
379
+ reg_h &= ~0x03; // исправление от dRon
380
reg_h |= ((_resolution - 1) >> 8) & 0x03;
381
MT_WriteOneByte(MT6701_I2C_EEPROM_ABZ_RES_REG_H, reg_h);
382
MT_WriteOneByte(MT6701_I2C_EEPROM_ABZ_RES_REG_L, reg_l);
0 commit comments