Skip to content

Commit

Permalink
fixes menu navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueforcer committed Nov 1, 2023
1 parent 9c5a3c1 commit f792c30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Overlays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ void StatusOverlay(FastLED_NeoMatrix *matrix, MatrixDisplayUiState *state, GifPl

void MenuOverlay(FastLED_NeoMatrix *matrix, MatrixDisplayUiState *state, GifPlayer *gifPlayer)
{

if (!MenuManager.inMenu)
return;

matrix->fillScreen(0);
DisplayManager.setTextColor(0xFFFFFF);
DisplayManager.printText(0, 6, utf8ascii(MenuManager.menutext()).c_str(), true, 2);
Expand Down
6 changes: 6 additions & 0 deletions src/PeripheryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ void PeripheryManager_::tick()
MQTTManager.sendButton(1, button_select.read());
ServerManager.sendButton(1, button_select.read());
}
else
{
button_left.read();
button_select.read();
button_right.read();
}

unsigned long currentMillis_BatTempHum = millis();
if (currentMillis_BatTempHum - previousMillis_BatTempHum >= interval_BatTempHum)
Expand Down

0 comments on commit f792c30

Please sign in to comment.