diff --git a/matrix/helper_functions.hpp b/matrix/helper_functions.hpp index 893f4da492..79d57504c7 100644 --- a/matrix/helper_functions.hpp +++ b/matrix/helper_functions.hpp @@ -15,8 +15,10 @@ namespace matrix template bool is_finite(Type x) { -#if defined (__PX4_NUTTX) || defined (__PX4_QURT) +#if defined (__PX4_NUTTX) return PX4_ISFINITE(x); +#elif defined (__PX4_QURT) + return __builtin_isfinite(x); #else return std::isfinite(x); #endif