Skip to content

Commit bf3ce8c

Browse files
committed
fixed getSelfTestResult() bug (missing accState)
1 parent d7c36ba commit bf3ce8c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/BNO055ESP32.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ bno055_self_test_result_t BNO055::getSelfTestResult(){
372372
res.mcuState = (tmp >> 3) & 0x01;
373373
res.gyrState = (tmp >> 2) & 0x01;
374374
res.magState = (tmp >> 1) & 0x01;
375+
res.accState = (tmp >> 0) & 0x01;
375376
return res;
376377
}
377378

src/BNO055ESP32.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ typedef struct{
262262
uint8_t mcuState = 0;
263263
uint8_t gyrState = 0;
264264
uint8_t magState = 0;
265+
uint8_t accState = 0;
265266
} bno055_self_test_result_t;
266267

267268
typedef struct{

0 commit comments

Comments
 (0)