From da0de5c8531d761b510d1b7e4979d4f2da71466a Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Sun, 2 May 2021 21:58:40 +0200 Subject: [PATCH] Fixing compile-error when IR is active --- src/Button.cpp | 5 +---- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Button.cpp b/src/Button.cpp index eec611a..5a09842 100644 --- a/src/Button.cpp +++ b/src/Button.cpp @@ -47,10 +47,7 @@ uint8_t gShutdownButton = 99; // Helper used for Neopixel: stores button-number static volatile SemaphoreHandle_t Button_TimerSemaphore; -#ifndef IR_CONTROL_ENABLE - hw_timer_t *Button_Timer = NULL; -#endif - +hw_timer_t *Button_Timer = NULL; static void IRAM_ATTR onTimer(); static void Button_DoButtonActions(void); diff --git a/src/main.cpp b/src/main.cpp index c12ce31..058e754 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -149,7 +149,7 @@ void setup() Serial.println(F(" | |___ ___) | | __/ | |_| | | | | | | | | (_) |")); Serial.println(F(" |_____| |____/ |_| \\__,_| |_| |_| |_| \\___/ ")); Serial.println(F(" Rfid-controlled musicplayer\n")); - Serial.println(F(" Rev 20210402-2\n")); + Serial.println(F(" Rev 20210502-1\n")); // print wake-up reason printWakeUpReason();