Skip to content

Commit

Permalink
Bugfix: Display flashing blank on boot with restore flag
Browse files Browse the repository at this point in the history
  • Loading branch information
shezik committed Jul 16, 2023
1 parent 17fe97c commit 4efa55e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/GEMProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

#include "GEM_u8g2.h"

// Modifications to GEM_u8g2.cpp in spirik/GEM@^1.4.0:
// Line 165: `// _u8g2.clear();`

// Modifications to GEM_u8g2.h in spirik/GEM@^1.4.0:
// Line 134: virtual void drawMenu();
// Line 141: protected:
Expand Down
4 changes: 3 additions & 1 deletion src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ void Menu::init(bool showMenuFlag_) {
gem->registerDrawMenuCallback(drawBatteryCallback);
pm.registerBatPercentChangedCallback([](){context->drawBatteryCallback(); context->dp.getU8g2()->sendBuffer();});
gem->setSplash(peanut_width, peanut_height, peanut_bits);
if (!showMenuFlag)
if (showMenuFlag)
dp.getU8g2()->clear();
else
gem->setSplashDelay(0);
gem->init();
}
Expand Down

0 comments on commit 4efa55e

Please sign in to comment.