From dc9b84ea8b85e81cb274ba9f85257b73a3432f7e Mon Sep 17 00:00:00 2001 From: Pascal Langer Date: Fri, 1 Dec 2017 16:46:42 +0100 Subject: [PATCH] _MyConfig.h --- Multiprotocol/Multiprotocol.h | 2 +- Multiprotocol/Multiprotocol.ino | 6 +++--- Multiprotocol/_Config.h | 8 ++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index b0f884b..78d3636 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -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 that 0 means hold for that channel and 2047 means no pulses -*/ \ No newline at end of file +*/ diff --git a/Multiprotocol/Multiprotocol.ino b/Multiprotocol/Multiprotocol.ino index 99a90e1..b768b15 100644 --- a/Multiprotocol/Multiprotocol.ino +++ b/Multiprotocol/Multiprotocol.ino @@ -38,8 +38,8 @@ #include "_Config.h" //Personal config file -#if __has_include("_MyConfig.h") - #include "_MyConfig.h" +#if __has_include("_MyConfig.h") || defined(USE_MY_CONFIG) +#include "_MyConfig.h" #endif #include "Pins.h" @@ -1589,4 +1589,4 @@ static uint32_t random_id(uint16_t address, uint8_t create_new) WDTCSR = 0; // Disable Watchdog interrupt } } -#endif \ No newline at end of file +#endif diff --git a/Multiprotocol/_Config.h b/Multiprotocol/_Config.h index 08506a7..b9695fd 100644 --- a/Multiprotocol/_Config.h +++ b/Multiprotocol/_Config.h @@ -17,6 +17,14 @@ /** 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 ***/ /*******************/