From c6d496feb7e526d5168b37cdb0492397ecb98f2b Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:51:50 -0500 Subject: [PATCH] Revert "fix compiler warnings for ACC_2_ALIGN identical branches (#1051)" (#1053) 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