Skip to content

Commit 862abc9

Browse files
committed
updated example.cpp (added sw & bootloader revision info)
1 parent 8e68550 commit 862abc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/example.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ extern "C" void app_main(){
6565
int8_t temperature = bno.getTemp();
6666
ESP_LOGI(TAG, "TEMP: %d°C", temperature);
6767

68+
int16_t sw = bno.getSWRevision();
69+
uint8_t bl_rev = bno.getBootloaderRevision();
70+
ESP_LOGI(TAG, "SW rev: %d, bootloader rev: %u", sw, bl_rev);
71+
6872
bno055_self_test_result_t res = bno.getSelfTestResult();
6973
ESP_LOGI(TAG, "Self-Test Results: MCU: %u, GYR:%u, MAG:%u, ACC: %u",res.mcuState,res.gyrState,res.magState,res.accState);
7074

0 commit comments

Comments
 (0)