irqhandler.cpp code sanitization

This commit is contained in:
Verkehrsrot 2019-12-26 16:58:42 +01:00
parent fac48ed9c4
commit 985548e73e

View File

@ -21,12 +21,11 @@ void irqHandler(void *pvParameters) {
InterruptStatus &= ~MASK_IRQ; // then clear irq mask flag InterruptStatus &= ~MASK_IRQ; // then clear irq mask flag
// else suppress processing if interrupt handler is disabled // else suppress processing if interrupt handler is disabled
// or time critical lmic jobs are pending in next 100ms // or time critical lmic jobs are pending in next 100ms
#if (HAS_LORA)
else if ((InterruptStatus & MASK_IRQ) ||
os_queryTimeCriticalJobs(ms2osticks(100)))
#else
else if ((InterruptStatus & MASK_IRQ) else if ((InterruptStatus & MASK_IRQ)
#if (HAS_LORA)
|| os_queryTimeCriticalJobs(ms2osticks(100))
#endif #endif
)
continue; continue;
// button pressed? // button pressed?