From efa39f99817cafabe563bb2f6f5349b98cc1f08a Mon Sep 17 00:00:00 2001 From: Terry Moore Date: Sat, 13 Apr 2019 00:01:41 -0400 Subject: [PATCH] Fix #98: check LMIC version in header file --- src/Arduino_LoRaWAN_lmic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Arduino_LoRaWAN_lmic.h b/src/Arduino_LoRaWAN_lmic.h index e4ad584..761f1b7 100644 --- a/src/Arduino_LoRaWAN_lmic.h +++ b/src/Arduino_LoRaWAN_lmic.h @@ -24,6 +24,10 @@ Copyright notice: #include +#if ! (defined(ARDUINO_LMIC_VERSION) && ARDUINO_LMIC_VERSION >= ARDUINO_LMIC_VERSION_CALC(2,3,2,50)) +# error lmic library is out of date. Check ARDUINO_LMIC_VERSION. +#endif + class Arduino_LoRaWAN::cLMIC { public: