mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-10-29 10:01:04 +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:
		
							parent
							
								
									e52b7ea7ff
								
							
						
					
					
						commit
						4e3c1edd52
					
				| @ -18,9 +18,13 @@ | |||||||
| 	#endif | 	#endif | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| // Automatically enable CHECK_FOR_BOOTLOADER if a FLASH_FROM_TX board is selected
 | // 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) | #if (defined(ARDUINO_MULTI_FLASH_FROM_TX) || defined(ARDUINO_MULTI_STM32_FLASH_FROM_TX)) &! defined(CHECK_FOR_BOOTLOADER) | ||||||
| 	#define 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 | #endif | ||||||
| 
 | 
 | ||||||
| // Error if CHECK_FOR_BOOTLOADER is enabled but the 'Flash from TX' bootloader or upload method isn't selected.
 | // Error if CHECK_FOR_BOOTLOADER is enabled but the 'Flash from TX' bootloader or upload method isn't selected.
 | ||||||
|  | |||||||
| @ -54,7 +54,7 @@ | |||||||
| /*************************/ | /*************************/ | ||||||
| //Allow flashing multimodule directly with TX(erky9x or opentx modified firmwares)
 | //Allow flashing multimodule directly with TX(erky9x or opentx modified firmwares)
 | ||||||
| //Instructions: https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/tree/master/BootLoaders#compiling--uploading-firmware-with-the-flash-from-tx-bootloader
 | //Instructions: https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/tree/master/BootLoaders#compiling--uploading-firmware-with-the-flash-from-tx-bootloader
 | ||||||
| //To enable this feature remove the "//" on the next line. It is automatically enabled/disabled when you use the AVR Multi boards.
 | //To enable this feature remove the "//" on the next line.  Requires a compatible bootloader or upload method to be selected when you use the Multi 4-in-1 Boards Manager definitions.
 | ||||||
| //#define CHECK_FOR_BOOTLOADER
 | //#define CHECK_FOR_BOOTLOADER
 | ||||||
| 
 | 
 | ||||||
| /****************/ | /****************/ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user