Skip to content

Commit

Permalink
[SensorBHI260AP] NRF52, unknown BUG, ​​temporarily resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 22, 2024
1 parent e69c7ec commit 8b12554
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/bosch/BoschParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ uint8_t ParseCallBackList::current_id = 1;
void BoschParse::parseData(const struct bhy2_fifo_parse_data_info *fifo, void *user_data)
{
int8_t size = fifo->data_size - 1;

#ifdef LOG_PORT
LOG_PORT.print("\n");
LOG_PORT.print("[");
Expand Down Expand Up @@ -83,6 +82,21 @@ void BoschParse::parseMetaEvent(const struct bhy2_fifo_parse_data_info *callback
(void)event_text;
uint8_t *accuracy = (uint8_t *)user_data;

#if defined(ARDUINO_ARCH_NRF52)
/*
*
* Unknown error, NRF52 Arduino version 1.6.1
* If you remove the serial output here, there will never be an interrupt.
* Suspect SDK problem.
* Temporarily add event id here to print ten times, then close
* */
static uint8_t cnt = 10;
if (cnt) {
cnt--;
Serial.print("parseMetaEvent:"); Serial.println(meta_event_type);
}
#endif

if (callback_info->sensor_id == BHY2_SYS_ID_META_EVENT) {
event_text = "[META EVENT]";
} else if (callback_info->sensor_id == BHY2_SYS_ID_META_EVENT_WU) {
Expand Down

0 comments on commit 8b12554

Please sign in to comment.