diff --git a/Multiprotocol/Common.ino b/Multiprotocol/Common.ino index 8df8439ea..14c05af6e 100644 --- a/Multiprotocol/Common.ino +++ b/Multiprotocol/Common.ino @@ -13,28 +13,6 @@ along with Multiprotocol. If not, see . */ -#ifdef FAILSAFE_ENABLE -//Convert from percentage to failsafe value -#define FAILSAFE_THROTTLE_LOW_VAL (((FAILSAFE_THROTTLE_LOW+125)*1024)/125) -#if FAILSAFE_THROTTLE_LOW_VAL <= 0 - #undef FAILSAFE_THROTTLE_LOW_VAL - #define FAILSAFE_THROTTLE_LOW_VAL 1 -#elif (FAILSAFE_THROTTLE_LOW_VAL) >= 2046 - #undef FAILSAFE_THROTTLE_LOW_VAL - #define FAILSAFE_THROTTLE_LOW_VAL 2046 -#endif -void InitFailsafe() -{ - for(uint8_t i=0;i227) + { //after 5s with PPM frames @22ms + counter=0; + for(uint8_t i=0;i