From 093699d062d315afc1f4c0313d1c3e0849711f80 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:47:32 -0500 Subject: [PATCH] Revert "fix compiler warnings for ACC_2_ALIGN identical branches (#1051)" This reverts commit bf2153163cdb6edbb1e4c83e5fc048f43c34f53b. --- src/main/sensors/acceleration.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/sensors/acceleration.c b/src/main/sensors/acceleration.c index f2cd4a7f96..6a45d357b4 100644 --- a/src/main/sensors/acceleration.c +++ b/src/main/sensors/acceleration.c @@ -370,15 +370,11 @@ bool accInit(void) { acc.dev.mpuDetectionResult = *gyroMpuDetectionResult(); acc.dev.acc_high_fsr = accelerometerConfig()->acc_high_fsr; #ifdef USE_DUAL_GYRO - #if defined ACC_2_ALIGN if (gyroConfig()->gyro_to_use == GYRO_CONFIG_USE_GYRO_2) { acc.dev.accAlign = ACC_2_ALIGN; - } - #elif defined ACC_1_ALIGN + } else { acc.dev.accAlign = ACC_1_ALIGN; - #else - acc.dev.accAlign = ALIGN_DEFAULT; - #endif + } #else acc.dev.accAlign = ALIGN_DEFAULT; #endif