From 73589647fc933dc35d307f214a6e4c4df8475dc5 Mon Sep 17 00:00:00 2001 From: myles-parfeniuk Date: Fri, 15 Nov 2024 16:48:51 -0800 Subject: [PATCH] corrected failure to enable_report after all reports disabled --- include/BNO08x.hpp | 6 ++-- source/BNO08x.cpp | 74 +++++++++++++++++++++++++++++++++------------- 2 files changed, 55 insertions(+), 25 deletions(-) diff --git a/include/BNO08x.hpp b/include/BNO08x.hpp index 1b2e8b3..3546481 100644 --- a/include/BNO08x.hpp +++ b/include/BNO08x.hpp @@ -368,7 +368,7 @@ class BNO08x bool wait_for_data(); bool receive_packet(); void send_packet(bno08x_tx_packet_t* packet); - void flush_rx_packets(uint8_t flush_count, TickType_t delay); + void flush_rx_packets(uint8_t flush_count); void enable_report(uint8_t report_ID, uint32_t time_between_reports, const EventBits_t report_evt_grp_bit, uint32_t special_config = 0); void disable_report(uint8_t report_ID, const EventBits_t report_evt_grp_bit); void queue_packet(uint8_t channel_number, uint8_t data_length, uint8_t* commands); @@ -387,6 +387,7 @@ class BNO08x // for debug void print_header(bno08x_rx_packet_t* packet); void print_packet(bno08x_rx_packet_t* packet); + bool first_boot = true; ///< true only for first execution of hard_reset(), used to suppress the printing of product ID report. // spi task TaskHandle_t spi_task_hdl; ///