LCD_PROGRESS_BAR w/out SDSUPPORT for character LCD
This commit is contained in:
parent
330437ad7c
commit
f6cc89ec7c
@ -327,8 +327,8 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
|
|||||||
* Progress Bar
|
* Progress Bar
|
||||||
*/
|
*/
|
||||||
#if ENABLED(LCD_PROGRESS_BAR)
|
#if ENABLED(LCD_PROGRESS_BAR)
|
||||||
#if DISABLED(SDSUPPORT)
|
#if DISABLED(SDSUPPORT) && DISABLED(LCD_SET_PROGRESS_MANUALLY)
|
||||||
#error "LCD_PROGRESS_BAR requires SDSUPPORT."
|
#error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
|
||||||
#elif DISABLED(ULTRA_LCD)
|
#elif DISABLED(ULTRA_LCD)
|
||||||
#error "LCD_PROGRESS_BAR requires a character LCD."
|
#error "LCD_PROGRESS_BAR requires a character LCD."
|
||||||
#elif ENABLED(DOGLCD)
|
#elif ENABLED(DOGLCD)
|
||||||
|
@ -426,7 +426,6 @@ static void lcd_set_custom_characters(
|
|||||||
createChar_P(LCD_FEEDRATE_CHAR, feedrate);
|
createChar_P(LCD_FEEDRATE_CHAR, feedrate);
|
||||||
createChar_P(LCD_CLOCK_CHAR, clock);
|
createChar_P(LCD_CLOCK_CHAR, clock);
|
||||||
|
|
||||||
#if ENABLED(SDSUPPORT)
|
|
||||||
#if ENABLED(LCD_PROGRESS_BAR)
|
#if ENABLED(LCD_PROGRESS_BAR)
|
||||||
if (screen_charset == CHARSET_INFO) { // 3 Progress bar characters for info screen
|
if (screen_charset == CHARSET_INFO) { // 3 Progress bar characters for info screen
|
||||||
for (int16_t i = 3; i--;)
|
for (int16_t i = 3; i--;)
|
||||||
@ -434,17 +433,16 @@ static void lcd_set_custom_characters(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{ // SD Card sub-menu special characters
|
{
|
||||||
createChar_P(LCD_UPLEVEL_CHAR, uplevel);
|
createChar_P(LCD_UPLEVEL_CHAR, uplevel);
|
||||||
|
#if ENABLED(SDSUPPORT)
|
||||||
|
// SD Card sub-menu special characters
|
||||||
createChar_P(LCD_STR_REFRESH[0], refresh);
|
createChar_P(LCD_STR_REFRESH[0], refresh);
|
||||||
createChar_P(LCD_STR_FOLDER[0], folder);
|
createChar_P(LCD_STR_FOLDER[0], folder);
|
||||||
}
|
|
||||||
#else
|
|
||||||
// With no SD support, only need the uplevel character
|
|
||||||
createChar_P(LCD_UPLEVEL_CHAR, uplevel);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lcd_implementation_init(
|
static void lcd_implementation_init(
|
||||||
|
Loading…
Reference in New Issue
Block a user