From b1069027c3108c1920749b5521a57aeb96e6c68b Mon Sep 17 00:00:00 2001 From: AJ Christensen Date: Sat, 9 Jun 2018 14:25:52 +1200 Subject: [PATCH] gyro sensors: use `axis_e` enum for consistency --- src/main/sensors/gyro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index b033fb1b0e..568ba00467 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -1083,11 +1083,11 @@ static FAST_CODE FAST_CODE_NOINLINE void gyroUpdateSensor(gyroSensor_t *gyroSens #ifdef USE_GYRO_DATA_ANALYSE // apply dynamic notch filter if (isDynamicFilterActive()) { - if (axis == 0) { + if (axis == X) { DEBUG_SET(DEBUG_FFT, 0, lrintf(gyroADCf)); // store raw data } gyroADCf = gyroSensor->notchFilterDynApplyFn((filter_t *)&gyroSensor->notchFilterDyn[axis], gyroADCf); - if (axis == 0) { + if (axis == X) { DEBUG_SET(DEBUG_FFT, 1, lrintf(gyroADCf)); // store data after dynamic notch } }