From 82d63616f1d09c338174c7d2b1dfeb418b14dd22 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Fri, 22 Oct 2021 16:38:42 +0200 Subject: [PATCH] Added correction for wrong side ledstrip --- main/serialhandler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main/serialhandler.h b/main/serialhandler.h index f4257d9..266eb4a 100644 --- a/main/serialhandler.h +++ b/main/serialhandler.h @@ -91,13 +91,23 @@ void handleSerial() break; case 'z': case 'Z': +#ifndef LEDSTRIP_WRONG_DIRECTION InputDispatcher::blinkLeftButton(true); InputDispatcher::blinkLeftButton(false); +#else + InputDispatcher::blinkRightButton(true); + InputDispatcher::blinkRightButton(false); +#endif break; case 'u': case 'U': +#ifndef LEDSTRIP_WRONG_DIRECTION InputDispatcher::blinkRightButton(true); InputDispatcher::blinkRightButton(false); +#else + InputDispatcher::blinkLeftButton(true); + InputDispatcher::blinkLeftButton(false); +#endif break; } }