diff --git a/Makefile b/Makefile index b816a2d089b..5900d13356e 100644 --- a/Makefile +++ b/Makefile @@ -239,7 +239,7 @@ CC_NO_OPTIMISATION := # # Added after GCC version update, remove once the warnings have been fixed # -TEMPORARY_FLAGS := -Wno-absolute-value +TEMPORARY_FLAGS := CFLAGS += $(ARCH_FLAGS) \ $(addprefix -D,$(OPTIONS)) \ diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 0069249258e..e3b13e0c42a 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -996,7 +996,7 @@ static FAST_CODE void checkForYawSpin(timeUs_t currentTimeUs) } else { #ifndef SIMULATOR_BUILD // check for spin on yaw axis only - if (abs(gyro.gyroADCf[Z]) > gyroConfig()->yaw_spin_threshold) { + if (abs((int)gyro.gyroADCf[Z]) > gyroConfig()->yaw_spin_threshold) { yawSpinDetected = true; yawSpinTimeUs = currentTimeUs; }