Fixed wrong direction for other users

This commit is contained in:
CommanderRedYT
2021-12-11 05:53:05 +01:00
parent 508c90800a
commit e4b171c90f
2 changed files with 9 additions and 0 deletions

View File

@ -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")

View File

@ -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