Browse Source

🔧 HAS_LCDPRINT conditional

FB4S_WIFI
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
341113bcfb
  1. 4
      Marlin/src/inc/Conditionals_LCD.h
  2. 4
      Marlin/src/lcd/lcdprint.cpp
  3. 2
      ini/features.ini

4
Marlin/src/inc/Conditionals_LCD.h

@ -539,6 +539,10 @@
#define HAS_DISPLAY 1
#endif
#if HAS_WIRED_LCD && !HAS_GRAPHICAL_TFT && !IS_DWIN_MARLINUI
#define HAS_LCDPRINT 1
#endif
#if ANY(HAS_DISPLAY, HAS_DWIN_E3V2, GLOBAL_STATUS_MESSAGE)
#define HAS_STATUS_MESSAGE 1
#endif

4
Marlin/src/lcd/lcdprint.cpp

@ -26,7 +26,7 @@
#include "../inc/MarlinConfigPre.h"
#if HAS_WIRED_LCD && !HAS_GRAPHICAL_TFT && !IS_DWIN_MARLINUI
#if HAS_LCDPRINT
#include "marlinui.h"
#include "lcdprint.h"
@ -103,4 +103,4 @@ int calculateWidth(PGM_P const pstr) {
return n * MENU_FONT_WIDTH;
}
#endif // HAS_WIRED_LCD
#endif // HAS_LCDPRINT

2
ini/features.ini

@ -34,7 +34,7 @@ I2C_AMMETER = peterus/INA226Lib@1.1.2
USES_LIQUIDCRYSTAL = LiquidCrystal=https://github.com/MarlinFirmware/New-LiquidCrystal/archive/1.5.1.zip
USES_LIQUIDCRYSTAL_I2C = marcoschwartz/LiquidCrystal_I2C@1.1.4
USES_LIQUIDTWI2 = LiquidTWI2@1.2.7
HAS_WIRED_LCD = src_filter=+<src/lcd/lcdprint.cpp>
HAS_LCDPRINT = src_filter=+<src/lcd/lcdprint.cpp>
HAS_MARLINUI_HD44780 = src_filter=+<src/lcd/HD44780>
HAS_MARLINUI_U8GLIB = U8glib-HAL@~0.5.0
src_filter=+<src/lcd/dogm>

Loading…
Cancel
Save