Add LCD_STR_SOLID_BLOCK to represent \xFF

This commit is contained in:
Guðni Már Gilbert 2022-02-05 19:53:42 +00:00
parent 976c8c4902
commit d5b666d260
3 changed files with 3 additions and 2 deletions

View File

@ -200,6 +200,7 @@ private:
#define LCD_STR_FEEDRATE "\x06" #define LCD_STR_FEEDRATE "\x06"
#define LCD_STR_CLOCK "\x07" #define LCD_STR_CLOCK "\x07"
#define LCD_STR_ARROW_RIGHT "\x7E" //from the default character set #define LCD_STR_ARROW_RIGHT "\x7E" //from the default character set
#define LCD_STR_SOLID_BLOCK "\xFF" //from the default character set
extern void lcd_set_custom_characters(void); extern void lcd_set_custom_characters(void);
extern void lcd_set_custom_characters_nextpage(void); extern void lcd_set_custom_characters_nextpage(void);

View File

@ -570,7 +570,7 @@ void menu_progressbar_update(uint16_t newVal)
newCnt = LCD_WIDTH; newCnt = LCD_WIDTH;
while (newCnt > progressbar_block_count) while (newCnt > progressbar_block_count)
{ {
lcd_print('\xFF'); lcd_print(LCD_STR_SOLID_BLOCK[0]);
progressbar_block_count++; progressbar_block_count++;
} }
} }

View File

@ -8646,7 +8646,7 @@ static void lcd_connect_printer() {
i = 0; i = 0;
lcd_puts_at_P(0, 3, PSTR(" ")); lcd_puts_at_P(0, 3, PSTR(" "));
} }
if (i!=0) lcd_puts_at_P((i * 20) / (NC_BUTTON_LONG_PRESS * 10), 3, "\xFF"); if (i!=0) lcd_puts_at_P((i * 20) / (NC_BUTTON_LONG_PRESS * 10), 3, LCD_STR_SOLID_BLOCK[0]);
if (i == NC_BUTTON_LONG_PRESS * 10) { if (i == NC_BUTTON_LONG_PRESS * 10) {
no_response = false; no_response = false;
} }