Merge pull request #11 from flyinggorilla/main

fixed checking for min 4 dwords in get_system_orientation
This commit is contained in:
Myles Parfeniuk 2025-06-07 07:42:38 -07:00 committed by GitHub
commit 8532eaae8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2039,7 +2039,7 @@ bool BNO08x::get_system_orientation(float& Qw, float& Qx, float& Qy, float& Qz)
if(!get_frs(BNO08xFrsID::SYSTEM_ORIENTATION, raw, words_rxd)) if(!get_frs(BNO08xFrsID::SYSTEM_ORIENTATION, raw, words_rxd))
return false; return false;
if(words_rxd <= 4U) if(words_rxd < 4U)
{ {
// clang-format off // clang-format off
#ifdef CONFIG_ESP32_BNO08x_LOG_STATEMENTS #ifdef CONFIG_ESP32_BNO08x_LOG_STATEMENTS