From f7784bc7ac1ca154bafd69d6f171ba8cf0811c8f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 11 Dec 2015 09:28:06 +0100 Subject: [PATCH] DSM decoder: Fixes for non-IO environment. --- src/lib/rc/dsm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 /**