From d587a8b8742cc4a282724525edfd79031fee8180 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Thu, 4 Oct 2018 23:24:34 +0200 Subject: [PATCH] code sanitization --- src/irqhandler.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/irqhandler.h b/src/irqhandler.h index 2950de84..f21e484c 100644 --- a/src/irqhandler.h +++ b/src/irqhandler.h @@ -8,18 +8,20 @@ #include "globals.h" #include "cyclic.h" -#include "button.h" -#include "display.h" #include "senddata.h" void irqHandler(void *pvParameters); void IRAM_ATTR ChannelSwitchIRQ(); void IRAM_ATTR homeCycleIRQ(); void IRAM_ATTR SendCycleIRQ(); + #ifdef HAS_DISPLAY +#include "display.h" void IRAM_ATTR DisplayIRQ(); #endif + #ifdef HAS_BUTTON +#include "button.h" void IRAM_ATTR ButtonIRQ(); #endif