_MyConfig.h

This commit is contained in:
Pascal Langer 2017-12-01 16:46:42 +01:00
parent 199c254838
commit dc9b84ea8b
3 changed files with 12 additions and 4 deletions

View File

@ -805,4 +805,4 @@ Commands from TX to module use values > 127 for command type
data[1-22] Failsafe data, encoded like normal channel data, with the expection data[1-22] Failsafe data, encoded like normal channel data, with the expection
that 0 means hold for that channel and 2047 means no pulses that 0 means hold for that channel and 2047 means no pulses
*/ */

View File

@ -38,8 +38,8 @@
#include "_Config.h" #include "_Config.h"
//Personal config file //Personal config file
#if __has_include("_MyConfig.h") #if __has_include("_MyConfig.h") || defined(USE_MY_CONFIG)
#include "_MyConfig.h" #include "_MyConfig.h"
#endif #endif
#include "Pins.h" #include "Pins.h"
@ -1589,4 +1589,4 @@ static uint32_t random_id(uint16_t address, uint8_t create_new)
WDTCSR = 0; // Disable Watchdog interrupt WDTCSR = 0; // Disable Watchdog interrupt
} }
} }
#endif #endif

View File

@ -17,6 +17,14 @@
/** Multiprotocol module configuration file ***/ /** Multiprotocol module configuration file ***/
/**********************************************/ /**********************************************/
/********************/
/*** LOCAL CONFIG ***/
/********************/
//If you know parameters you want for sure to be enabled or disabled which survives in future, you can use a file named "_MyConfig.h".
//An example is given within the file named "_MyConfig.h.example" which needs to be renamed if you want to use it.
//To enable this config file remove the // from the line below. It's automatically loaded if the file exists for the AVR platform but not STM32...
//#define USE_MY_CONFIG
/*******************/ /*******************/
/*** TX SETTINGS ***/ /*** TX SETTINGS ***/
/*******************/ /*******************/