From b5e0949408342f4d37b2660c551ad928d82eac0f Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sun, 20 Oct 2019 21:11:59 +0200 Subject: [PATCH] fix irqhandler without lora --- src/irqhandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/irqhandler.cpp b/src/irqhandler.cpp index 64375ab8..47172528 100644 --- a/src/irqhandler.cpp +++ b/src/irqhandler.cpp @@ -20,9 +20,13 @@ void irqHandler(void *pvParameters) { if (InterruptStatus & UNMASK_IRQ) // interrupt handler to be enabled? mask_irq = false; - // else if (mask_irq) // suppress processing if interrupt handler is - // disabled + // else if (mask_irq) // suppress processing if interrupt handler is + // disabled +#if (HAS_LORA) else if (mask_irq || os_queryTimeCriticalJobs(ms2osticks(100))) +#else + else if (mask_irq) +#endif // suppress processing if interrupt handler is disabled // or time critical lmic jobs are pending in next 100ms continue;