From 08f847314a52ca90d2d0477f62de8d9cbaba64ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20M=C3=BChl?= <31169771+Blueforcer@users.noreply.github.com> Date: Mon, 3 Apr 2023 13:18:47 +0200 Subject: [PATCH] Update PeripheryManager.cpp --- src/PeripheryManager.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PeripheryManager.cpp b/src/PeripheryManager.cpp index b2f3081..1e73d43 100644 --- a/src/PeripheryManager.cpp +++ b/src/PeripheryManager.cpp @@ -99,13 +99,13 @@ void left_button_pressed() if (AP_MODE) { - #ifndef ULANZI +#ifdef AWTRIX_UPGRADE --MATRIX_LAYOUT; if (MATRIX_LAYOUT < 0) MATRIX_LAYOUT = 2; saveSettings(); ESP.restart(); - #endif +#endif } else { @@ -116,18 +116,18 @@ void left_button_pressed() void right_button_pressed() { - #ifdef AWTRIX_UPGRADE +#ifdef AWTRIX_UPGRADE PeripheryManager.playFromFile(DFMINI_MP3_CLICK); - #endif +#endif if (AP_MODE) { - #ifndef ULANZI +#ifdef AWTRIX_UPGRADE ++MATRIX_LAYOUT; if (MATRIX_LAYOUT > 2) MATRIX_LAYOUT = 0; saveSettings(); ESP.restart(); - #endif +#endif } else { @@ -138,9 +138,9 @@ void right_button_pressed() void select_button_pressed() { - #ifdef AWTRIX_UPGRADE +#ifdef AWTRIX_UPGRADE PeripheryManager.playFromFile(DFMINI_MP3_CLICK); - #endif +#endif DisplayManager.selectButton(); MenuManager.selectButton(); }