Rename LCD conditionals (#19533)
This commit is contained in:
@ -44,7 +44,7 @@ uint8_t PowerMonitor::display_item;
|
||||
|
||||
PowerMonitor power_monitor; // Single instance - this calls the constructor
|
||||
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#if HAS_MARLINUI_U8GLIB
|
||||
|
||||
#if ENABLED(POWER_MONITOR_CURRENT)
|
||||
void PowerMonitor::draw_current() {
|
||||
@ -70,6 +70,6 @@ PowerMonitor power_monitor; // Single instance - this calls the constructor
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // HAS_GRAPHICAL_LCD
|
||||
#endif // HAS_MARLINUI_U8GLIB
|
||||
|
||||
#endif // HAS_POWER_MONITOR
|
||||
|
@ -88,8 +88,8 @@ public:
|
||||
FORCE_INLINE static float getPower() { return getAmps() * getVolts(); }
|
||||
#endif
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_GRAPHICAL_LCD && DISABLED(LIGHTWEIGHT_UI)
|
||||
#if HAS_WIRED_LCD
|
||||
#if HAS_MARLINUI_U8GLIB && DISABLED(LIGHTWEIGHT_UI)
|
||||
FORCE_INLINE static bool display_enabled() { return flags != 0x00; }
|
||||
#endif
|
||||
#if ENABLED(POWER_MONITOR_CURRENT)
|
||||
|
Reference in New Issue
Block a user