diff --git a/Multiprotocol/Validate.h b/Multiprotocol/Validate.h index 412558b..793c829 100644 --- a/Multiprotocol/Validate.h +++ b/Multiprotocol/Validate.h @@ -21,19 +21,26 @@ // Error if CHECK_FOR_BOOTLOADER is not enabled but a FLASH_FROM_TX board is selected #if (defined(ARDUINO_MULTI_FLASH_FROM_TX) || defined(ARDUINO_MULTI_STM32_FLASH_FROM_TX)) &! defined(CHECK_FOR_BOOTLOADER) #if defined(STM32_BOARD) - #error "You have selected the 'Flash from TX' upload method but not enabled CHECK_FOR_BOOTLOADER." - #else - #error "You have selected the 'Flash from TX' bootloader but not enabled CHECK_FOR_BOOTLOADER." - #endif + #error "You have selected the 'Flash from TX' upload method but not enabled CHECK_FOR_BOOTLOADER." + #else + #error "You have selected the 'Flash from TX' bootloader but not enabled CHECK_FOR_BOOTLOADER." + #endif #endif // Error if CHECK_FOR_BOOTLOADER is enabled but the 'Flash from TX' bootloader or upload method isn't selected. #if (defined(ARDUINO_MULTI_NO_BOOT) || defined(ARDUINO_MULTI_STM32_NO_BOOT)) && defined(CHECK_FOR_BOOTLOADER) - #if defined(STM32_BOARD) - #error "You have enabled CHECK_FOR_BOOTLOADER but not selected the 'Flash from TX' upload method." - #else - #error "You have enabled CHECK_FOR_BOOTLOADER but not selected the 'Flash from TX' bootloader." - #endif + #if defined(STM32_BOARD) + #error "You have enabled CHECK_FOR_BOOTLOADER but not selected the 'Flash from TX' upload method." + #else + #error "You have enabled CHECK_FOR_BOOTLOADER but not selected the 'Flash from TX' bootloader." + #endif +#endif + +//Check failsafe throttle value +#ifdef FAILSAFE_ENABLE + #if ( FAILSAFE_THROTTLE_LOW < -125 ) || ( FAILSAFE_THROTTLE_LOW > 125 ) + #error "The failsafe value for throttle is outside of the range -125..125." + #endif #endif //Change/Force configuration if OrangeTX