Skip to content

Commit

Permalink
Fix compile error of no display is used
Browse files Browse the repository at this point in the history
  • Loading branch information
tml89 authored and LoQue90 committed May 27, 2024
1 parent 444264d commit 1bebd2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,8 @@ U8G2_SH1106_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R0, OLED_CS, OLED_DC, /* reset=*
#elif (DISPLAYTEMPLATE == 20)
#include "display/displayTemplateUpright.h"
#endif
#endif

Timer printDisplayTimer(&printScreen, 100);
#endif

#include "powerHandler.h"
#include "scaleHandler.h"
Expand Down Expand Up @@ -981,15 +980,19 @@ void handleMachineState() {

case kStandby:
if (standbyModeRemainingTimeDisplayOffMillis == 0) {
#if OLED_DISPLAY != 0
u8g2.setPowerSave(1);
#endif
}

brewDetection();

if (pidON || steamON || isBrewDetected) {
pidON = 1;
resetStandbyTimer();
#if OLED_DISPLAY != 0
u8g2.setPowerSave(0);
#endif

if (steamON) {
machineState = kSteam;
Expand Down

0 comments on commit 1bebd2b

Please sign in to comment.