From 8000684827d858e706c6cfd3aeb1a0330f7e5f17 Mon Sep 17 00:00:00 2001 From: Avamander Date: Sun, 31 May 2020 04:06:29 +0300 Subject: [PATCH] Added a warning about incorrect flags being used Made the preprocessor throw an error if an ancient define is specified, user must update their defines to avoid very difficult to diagnose issues further on. --- MyConfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MyConfig.h b/MyConfig.h index e164f2063..648888934 100644 --- a/MyConfig.h +++ b/MyConfig.h @@ -420,6 +420,16 @@ #define MY_RF24_CHANNEL (76) #endif +// legacy - remove for 3.0.0 +/** +* @def RF24_DATARATE +* @brief Define this to specify a specific wireless data rate used by the RF24 +* @deprecated This flag is deprecated and replaced by @ref MY_RF24_DATARATE +*/ +#ifdef RF24_DATARATE +#error RF24_DATARATE is deprecated, use MY_RF24_DATARATE instead! +#endif + /** * @def MY_RF24_DATARATE * @brief RF24 data rate.