diff --git a/src/debug.h b/src/debug.h index 0e85a5d..1107667 100644 --- a/src/debug.h +++ b/src/debug.h @@ -96,7 +96,7 @@ // Not recommended for production #define ENABLE_INSPECTION false -#define PROTOCOL_VERSION 21 +#define PROTOCOL_VERSION 22 #ifndef FIRMWARE_VERSION #define FIRMWARE_VERSION "UNKNOWN" diff --git a/src/sensors/sensor.cpp b/src/sensors/sensor.cpp index 31eb07c..ea484d2 100644 --- a/src/sensors/sensor.cpp +++ b/src/sensors/sensor.cpp @@ -33,6 +33,7 @@ SensorStatus Sensor::getSensorState() { void Sensor::setAcceleration(Vector3 a) { acceleration = a; + sensorOffset.sandwich(acceleration); newAcceleration = true; }