From 61392c5afca27efba162fc400f400f55f57d618d Mon Sep 17 00:00:00 2001 From: JOhn Aughey Date: Thu, 28 Apr 2016 12:55:23 -0500 Subject: [PATCH] Removing inline from constrin and constrainf. These functions are used elsewhere and the inline declaration can cause the compiler to make them static and unavailable outside of this file. Unless these functions are defined in a .h file, they cannot be inlined. --- src/main/common/maths.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/common/maths.c b/src/main/common/maths.c index 3be8eff722..f54aeacdb7 100644 --- a/src/main/common/maths.c +++ b/src/main/common/maths.c @@ -111,7 +111,7 @@ int32_t applyDeadband(int32_t value, int32_t deadband) return value; } -inline int constrain(int amt, int low, int high) +int constrain(int amt, int low, int high) { if (amt < low) return low; @@ -121,7 +121,7 @@ inline int constrain(int amt, int low, int high) return amt; } -inline float constrainf(float amt, float low, float high) +float constrainf(float amt, float low, float high) { if (amt < low) return low;