From 68d8aff3991b00c6002ae423ea4b3655a3558717 Mon Sep 17 00:00:00 2001 From: Francesco Zardi Date: Sun, 10 Nov 2019 12:00:11 +0100 Subject: [PATCH] Define CFG_au921 for backward compatibility --- src/lmic/lmic_config_preconditions.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lmic/lmic_config_preconditions.h b/src/lmic/lmic_config_preconditions.h index c3a96804..802cdc86 100644 --- a/src/lmic/lmic_config_preconditions.h +++ b/src/lmic/lmic_config_preconditions.h @@ -97,6 +97,11 @@ Revision history: # define CFG_au915 #endif +// for backwards compatibility to legacy code, define CFG_au921 if we see CFG_au915. +#if defined(CFG_au915) && !defined(CFG_au921) +# define CFG_au921 +#endif + // a mask of the supported regions // TODO(tmm@mcci.com) consider moving this block to a central file as it's not // user-editable.