Update PeripheryManager.cpp

This commit is contained in:
Stephan Mühl
2023-04-03 13:18:47 +02:00
parent 5484439f75
commit 08f847314a

View File

@@ -99,7 +99,7 @@ void left_button_pressed()
if (AP_MODE) if (AP_MODE)
{ {
#ifndef ULANZI #ifdef AWTRIX_UPGRADE
--MATRIX_LAYOUT; --MATRIX_LAYOUT;
if (MATRIX_LAYOUT < 0) if (MATRIX_LAYOUT < 0)
MATRIX_LAYOUT = 2; MATRIX_LAYOUT = 2;
@@ -121,7 +121,7 @@ void right_button_pressed()
#endif #endif
if (AP_MODE) if (AP_MODE)
{ {
#ifndef ULANZI #ifdef AWTRIX_UPGRADE
++MATRIX_LAYOUT; ++MATRIX_LAYOUT;
if (MATRIX_LAYOUT > 2) if (MATRIX_LAYOUT > 2)
MATRIX_LAYOUT = 0; MATRIX_LAYOUT = 0;