Skip to content

Commit

Permalink
Merge pull request #26 from Spaceona/hotfix/v1.6.5
Browse files Browse the repository at this point in the history
Changed detection to only be changed in accel
  • Loading branch information
leslier7 authored Jan 27, 2025
2 parents d2a7eb5 + 95821ec commit 599a430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IMUFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool motion_detected(ICM42670 &IMU, int accelRange, int gyroRange) {
prev_accel_y = accelY_mps2;
prev_accel_z = accelZ_mps2;

if (abs(accelZ_mps2) >= MPU_ACCEL_Z_THRESH || delta_x >= ACCEL_CHANGE_THRESH ||
if (delta_x >= ACCEL_CHANGE_THRESH ||
delta_y >= ACCEL_CHANGE_THRESH || delta_z >= ACCEL_CHANGE_THRESH) {
return true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "globals.h"

//Firmware version
String FIRMWARE_VERSION = "1-6-4";
String FIRMWARE_VERSION = "1-6-5";
//TODO fix this for double digit values
const int FIRMWARE_VERSION_MAJOR = FIRMWARE_VERSION.substring(0, 1).toInt();
const int FIRMWARE_VERSION_MINOR = FIRMWARE_VERSION.substring(2, 3).toInt();
Expand Down

0 comments on commit 599a430

Please sign in to comment.