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,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();
}