diff --git a/src/irqhandler.cpp b/src/irqhandler.cpp index 47172528..901c0449 100644 --- a/src/irqhandler.cpp +++ b/src/irqhandler.cpp @@ -20,16 +20,16 @@ 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 + + // suppress processing if interrupt handler is disabled + // or time critical lmic jobs are pending in next 100ms #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; + else if (InterruptStatus & MASK_IRQ) { // interrupt handler to be disabled? mask_irq = true; continue;