Skip to content

[BUG] setting LCD_INFO_SCREEN_STYLE on non HAS_MARLINUI_HD44780 screen no longer errors #27355

Open
@ellensp

Description

@ellensp

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

setting LCD_INFO_SCREEN_STYLE on non HAS_MARLINUI_HD44780 screen no longer errors
now it just quietly undefines LCD_INFO_SCREEN_STYLE
Added in PR #27346 6 days ago

#if !HAS_MARLINUI_HD44780
  #undef LCD_INFO_SCREEN_STYLE
#endif

Instead of triggering the following sanity check to warn the user

/**
 * LCD Info Screen Style
 */
#if LCD_INFO_SCREEN_STYLE > 0
  #if HAS_MARLINUI_U8GLIB || LCD_WIDTH < 20 || LCD_HEIGHT < 4
    #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
  #elif LCD_INFO_SCREEN_STYLE > 2
    #error "LCD_INFO_SCREEN_STYLE only has options 0 (Classic), 1 (Průša), and 2 (CNC)."
  #endif
#endif

Bug Timeline

since #27346

Expected behavior

This should warn the user that LCD_INFO_SCREEN_STYLE is not compatible with their display

Actual behavior

It silently removes LCD_INFO_SCREEN_STYLE and the user complains that LCD_INFO_SCREEN_STYLE is not working.
(Already happened today on Marlin Discord)

Version of Marlin Firmware

Bugfix-2.1.x

Electronics

any

LCD/Controller

any non char display

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions