mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-01-08 17:13:17 +00:00
Add error if CHECK_FOR_BOOTLOADER is not enabled but 'Flash from TX' is
Error rather than silently enabling CHECK_FOR_BOOTLOADER.
This commit is contained in:
@@ -18,9 +18,13 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Automatically enable CHECK_FOR_BOOTLOADER if a FLASH_FROM_TX board is selected
|
||||
#if defined(ARDUINO_MULTI_FLASH_FROM_TX) || defined(ARDUINO_MULTI_STM32_FLASH_FROM_TX)
|
||||
#define CHECK_FOR_BOOTLOADER
|
||||
// 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
|
||||
#endif
|
||||
|
||||
// Error if CHECK_FOR_BOOTLOADER is enabled but the 'Flash from TX' bootloader or upload method isn't selected.
|
||||
|
||||
Reference in New Issue
Block a user