diff --git a/src/lib/rc/dsm.c b/src/lib/rc/dsm.c index fc5b69686f..19e41e0ab2 100644 --- a/src/lib/rc/dsm.c +++ b/src/lib/rc/dsm.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include @@ -52,7 +51,12 @@ #include #ifndef GPIO_SPEKTRUM_PWR_EN -#error DSM input driver not supported by this board config +#warning DSM input driver not supporting binding by this board config + #define POWER_SPEKTRUM(arg) +#endif + +#if defined (__PX4_LINUX) || defined (__PX4_DARWIN) + #define up_udelay(arg) #endif #define DSM_FRAME_SIZE 16 /**