Skip to content

Commit 8e68550

Browse files
committed
updated example.cpp (added self-test results)
1 parent bf3ce8c commit 8e68550

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/example.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ extern "C" void app_main(){
6464

6565
int8_t temperature = bno.getTemp();
6666
ESP_LOGI(TAG, "TEMP: %d°C", temperature);
67+
68+
bno055_self_test_result_t res = bno.getSelfTestResult();
69+
ESP_LOGI(TAG, "Self-Test Results: MCU: %u, GYR:%u, MAG:%u, ACC: %u",res.mcuState,res.gyrState,res.magState,res.accState);
6770

6871
while (1){
6972
try{

0 commit comments

Comments
 (0)