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.
2 parents 3a11d58 + 72ddddc commit 232386bCopy full SHA for 232386b
src/encoders/mt6835/MT6835.cpp
@@ -91,7 +91,7 @@ uint8_t MT6835::getStatus(){
91
uint8_t MT6835::getCalibrationStatus(){
92
uint8_t data[3] = {0};
93
data[0] = MT6835_OP_READ << 4 | MT6835_REG_CAL_STATUS >> 8;
94
- data[1] = MT6835_REG_CAL_STATUS;
+ data[1] = MT6835_REG_CAL_STATUS & 0xFF;
95
96
spi->beginTransaction(settings);
97
if(nCS >= 0)
0 commit comments