From 985548e73e1904fb96f988c991e077aa62e23a6e Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Thu, 26 Dec 2019 16:58:42 +0100 Subject: [PATCH] irqhandler.cpp code sanitization --- src/irqhandler.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/irqhandler.cpp b/src/irqhandler.cpp index af0721a4..636fbfdb 100644 --- a/src/irqhandler.cpp +++ b/src/irqhandler.cpp @@ -19,14 +19,13 @@ void irqHandler(void *pvParameters) { if (InterruptStatus & UNMASK_IRQ) // interrupt handler to be enabled? InterruptStatus &= ~MASK_IRQ; // then clear irq mask flag - // else suppress processing if interrupt handler is disabled - // or time critical lmic jobs are pending in next 100ms -#if (HAS_LORA) - else if ((InterruptStatus & MASK_IRQ) || - os_queryTimeCriticalJobs(ms2osticks(100))) -#else + // else suppress processing if interrupt handler is disabled + // or time critical lmic jobs are pending in next 100ms else if ((InterruptStatus & MASK_IRQ) +#if (HAS_LORA) + || os_queryTimeCriticalJobs(ms2osticks(100)) #endif + ) continue; // button pressed?