Skip to content

Commit

Permalink
fix BT IMU processing
Browse files Browse the repository at this point in the history
  • Loading branch information
JovannMC committed Apr 21, 2024
1 parent 8136130 commit fe1e348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/haritorax-wireless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ let initialRotations: { [key: string]: any } = {};

function decodeIMUPacket(data: string, trackerName: string) {
try {
if (data.length < 16) {
if (data.length < 14) {
throw new Error("Too few bytes to decode IMU packet");
}

Expand Down

0 comments on commit fe1e348

Please sign in to comment.