diff --git a/src/AccelerometerThread.h b/src/AccelerometerThread.h index 79a6cd570f..6827908b7c 100644 --- a/src/AccelerometerThread.h +++ b/src/AccelerometerThread.h @@ -92,24 +92,12 @@ class AccelerometerThread : public concurrency::OSThread RISING); // Select the interrupt mode according to the actual circuit #endif - /* struct bma423_axes_remap remap_data; // todo resurrect - #ifdef T_WATCH_S3 - remap_data.x_axis = 1; - remap_data.x_axis_sign = 0; - remap_data.y_axis = 0; - remap_data.y_axis_sign = 0; - remap_data.z_axis = 2; - remap_data.z_axis_sign = 1; - #else - remap_data.x_axis = 0; - remap_data.x_axis_sign = 1; - remap_data.y_axis = 1; - remap_data.y_axis_sign = 0; - remap_data.z_axis = 2; - remap_data.z_axis_sign = 1; - #endif*/ +#ifdef T_WATCH_S3 // Need to raise the wrist function, need to set the correct axis bmaSensor.setReampAxes(bmaSensor.REMAP_TOP_LAYER_RIGHT_CORNER); +#else + bmaSensor.setReampAxes(bmaSensor.REMAP_BOTTOM_LAYER_BOTTOM_LEFT_CORNER); +#endif // bmaSensor.enableFeature(bmaSensor.FEATURE_STEP_CNTR, true); bmaSensor.enableFeature(bmaSensor.FEATURE_TILT, true); bmaSensor.enableFeature(bmaSensor.FEATURE_WAKEUP, true);