Skip to content

Commit 8caf05d

Browse files
author
Richard Unger
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents a542a71 + 232386b commit 8caf05d

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)