From 67cede28867a0da6e13cc070e8bb3a09d33897e5 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 6 Apr 2020 11:53:38 +0200 Subject: [PATCH] lmic_config.h: bugfix pycom boards --- src/lmic_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lmic_config.h b/src/lmic_config.h index df3c5668..4a48283e 100644 --- a/src/lmic_config.h +++ b/src/lmic_config.h @@ -17,8 +17,10 @@ // --> adapt to your device only if necessary // use interrupts only if LORA_IRQ and LORA_DIO are connected to interrupt -// capable GPIO pins on your board, if not disable interrupts +// capable and separate GPIO pins on your board, if not don't enable +#if (LORA_IRQ) != (LORA_IO1) #define LMIC_USE_INTERRUPTS 1 +#endif // time sync via LoRaWAN network, note: not supported by TTNv2 #define LMIC_ENABLE_DeviceTimeReq 1