Skip to content

Commit 232386b

Browse files
Merge pull request #40 from ystradmann/fix-mt6835
Fix compiler warning in MT6835.cpp
2 parents 3a11d58 + 72ddddc commit 232386b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoders/mt6835/MT6835.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ uint8_t MT6835::getStatus(){
9191
uint8_t MT6835::getCalibrationStatus(){
9292
uint8_t data[3] = {0};
9393
data[0] = MT6835_OP_READ << 4 | MT6835_REG_CAL_STATUS >> 8;
94-
data[1] = MT6835_REG_CAL_STATUS;
94+
data[1] = MT6835_REG_CAL_STATUS & 0xFF;
9595

9696
spi->beginTransaction(settings);
9797
if(nCS >= 0)

0 commit comments

Comments
 (0)