Skip to content

Commit 9ed769b

Browse files
committed
Fix build errors with no local UI
1 parent 73b37cb commit 9ed769b

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/screens/screen_boot.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#undef ENABLE_DEBUG
33
#endif
44

5+
#ifdef ENABLE_SCREEN_LCD_TFT
6+
57
#include "emonesp.h"
68
#include "screens/screen_boot.h"
79
#include "lcd_common.h"
@@ -46,3 +48,5 @@ unsigned long BootScreen::update()
4648

4749
return 166;
4850
}
51+
52+
#endif // ENABLE_SCREEN_LCD_TFT

src/screens/screen_charge.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#undef ENABLE_DEBUG
33
#endif
44

5+
#ifdef ENABLE_SCREEN_LCD_TFT
6+
57
#include "emonesp.h"
68
#include "screens/screen_charge.h"
79
#include "lcd_common.h"
@@ -193,3 +195,5 @@ unsigned long ChargeScreen::update()
193195

194196
return nextUpdate;
195197
}
198+
199+
#endif // ENABLE_SCREEN_LCD_TFT

src/screens/screen_manager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#undef ENABLE_DEBUG
33
#endif
44

5+
#ifdef ENABLE_SCREEN_LCD_TFT
6+
57
#include "emonesp.h"
68
#include "screens/screen_manager.h"
79
#include "screens/screen_boot.h"
@@ -168,3 +170,5 @@ void ScreenManager::updateBacklight()
168170
}
169171
}
170172
#endif //TFT_BACKLIGHT_TIMEOUT_MS
173+
174+
#endif // ENABLE_SCREEN_LCD_TFT

src/screens/screen_renderer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#undef ENABLE_DEBUG
33
#endif
44

5+
#ifdef ENABLE_SCREEN_LCD_TFT
6+
57
#include "emonesp.h"
68
#include "screens/screen_renderer.h"
79
#include "lcd_common.h"
@@ -161,3 +163,5 @@ static void png_draw(PNGDRAW *pDraw)
161163
png.getLineAsRGB565(pDraw, lineBuffer, PNG_RGB565_BIG_ENDIAN, 0xffffffff);
162164
state->tft->pushImage(state->xpos, state->ypos + pDraw->y, pDraw->iWidth, 1, lineBuffer);
163165
}
166+
167+
#endif // ENABLE_SCREEN_LCD_TFT

0 commit comments

Comments
 (0)