1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Use std abs() instead of ABS() macro

Changes uses of ABS() macro to <stdlib.h> abs() and <math.h> fabsf()
This commit is contained in:
Mathias Rasmussen 2021-12-03 06:08:06 +01:00 committed by KarateBrot
parent b54174c77e
commit 61ded491cd
18 changed files with 43 additions and 30 deletions

View file

@ -20,6 +20,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
@ -741,7 +742,7 @@ int8_t calculateThrottlePercent(void)
uint8_t calculateThrottlePercentAbs(void)
{
return ABS(calculateThrottlePercent());
return abs(calculateThrottlePercent());
}
static bool airmodeIsActivated;