1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

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.
This commit is contained in:
JOhn Aughey 2016-04-28 12:55:23 -05:00
parent 3f524297d1
commit 61392c5afc

View file

@ -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;