Merge pull request #12 from FlyteSailing/main

Fix invalid data writing in set_system_orientation function
This commit is contained in:
Myles Parfeniuk 2025-07-19 10:10:57 -07:00 committed by GitHub
commit d78f6e5c47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2017,7 +2017,7 @@ bool BNO08x::set_system_orientation(float Qw, float Qx, float Qy, float Qz)
static_cast<uint32_t>(float_to_q30(Qw)) // W component
};
if(!write_frs(BNO08xFrsID::SYSTEM_ORIENTATION, orientation_raw, sizeof(orientation_raw)))
if(!write_frs(BNO08xFrsID::SYSTEM_ORIENTATION, orientation_raw, sizeof(orientation_raw)/sizeof(uint32_t)))
return false;
return true;