From e4b171c90fc56c7f64ce178b24091cbbfe9d81cd Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Sat, 11 Dec 2021 05:53:05 +0100 Subject: [PATCH] Fixed wrong direction for other users --- config_comred.cmake | 1 + main/buttons.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/config_comred.cmake b/config_comred.cmake index 1af8c9a..f06480e 100644 --- a/config_comred.cmake +++ b/config_comred.cmake @@ -117,6 +117,7 @@ set(BOBBYCAR_BUILDFLAGS -DLEDS_PER_METER=144 -DOLD_NVS -DFEATURE_DNS_NS + -DSWITCH_BLINK ) if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake") diff --git a/main/buttons.cpp b/main/buttons.cpp index 4361ac6..5879359 100644 --- a/main/buttons.cpp +++ b/main/buttons.cpp @@ -121,7 +121,11 @@ void InputDispatcher::profileButton(uint8_t index, bool pressed) switchProfile(index); } +#ifdef SWITCH_BLINK void InputDispatcher::blinkRightButton(bool pressed) +#else +void InputDispatcher::blinkLeftButton(bool pressed) +#endif { if(!pressed)return; @@ -138,7 +142,11 @@ void InputDispatcher::blinkRightButton(bool pressed) #endif } +#ifndef SWITCH_BLINK +void InputDispatcher::blinkRightButton(bool pressed) +#else void InputDispatcher::blinkLeftButton(bool pressed) +#endif { if(!pressed)return; #ifdef FEATURE_LEDSTRIP