|
@ -29,12 +29,31 @@ |
|
|
#if ENABLED(SDSUPPORT) |
|
|
#if ENABLED(SDSUPPORT) |
|
|
#include "../sd/cardreader.h" |
|
|
#include "../sd/cardreader.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(EXTENSIBLE_UI) |
|
|
#if ENABLED(EXTENSIBLE_UI) |
|
|
#define START_OF_UTF8_CHAR(C) (((C) & 0xC0u) != 0x80u) |
|
|
#define START_OF_UTF8_CHAR(C) (((C) & 0xC0u) != 0x80u) |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_SPI_LCD |
|
|
|
|
|
#if ENABLED(STATUS_MESSAGE_SCROLLING) |
|
|
|
|
|
uint8_t MarlinUI::status_scroll_offset; // = 0
|
|
|
|
|
|
#if LONG_FILENAME_LENGTH > CHARSIZE * 2 * (LCD_WIDTH) |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH LONG_FILENAME_LENGTH |
|
|
|
|
|
#else |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH CHARSIZE * 2 * (LCD_WIDTH) |
|
|
|
|
|
#endif |
|
|
|
|
|
#else |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH CHARSIZE * (LCD_WIDTH) |
|
|
|
|
|
#endif |
|
|
|
|
|
#elif ENABLED(EXTENSIBLE_UI) |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH 63 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef MAX_MESSAGE_LENGTH |
|
|
|
|
|
uint8_t MarlinUI::status_message_level; // = 0
|
|
|
|
|
|
char MarlinUI::status_message[MAX_MESSAGE_LENGTH + 1]; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if HAS_SPI_LCD |
|
|
#if HAS_SPI_LCD |
|
|
|
|
|
|
|
|
#if HAS_GRAPHICAL_LCD |
|
|
#if HAS_GRAPHICAL_LCD |
|
@ -75,24 +94,6 @@ |
|
|
uint8_t lcd_sd_status; |
|
|
uint8_t lcd_sd_status; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(STATUS_MESSAGE_SCROLLING) |
|
|
|
|
|
uint8_t MarlinUI::status_scroll_offset; // = 0
|
|
|
|
|
|
#if LONG_FILENAME_LENGTH > CHARSIZE * 2 * (LCD_WIDTH) |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH LONG_FILENAME_LENGTH |
|
|
|
|
|
#else |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH CHARSIZE * 2 * (LCD_WIDTH) |
|
|
|
|
|
#endif |
|
|
|
|
|
#elif ENABLED(EXTENSIBLE_UI) |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH 63 |
|
|
|
|
|
#else |
|
|
|
|
|
#define MAX_MESSAGE_LENGTH CHARSIZE * (LCD_WIDTH) |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_SPI_LCD || ENABLED(EXTENSIBLE_UI) |
|
|
|
|
|
uint8_t MarlinUI::status_message_level; // = 0
|
|
|
|
|
|
char MarlinUI::status_message[MAX_MESSAGE_LENGTH + 1]; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS |
|
|
#if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS |
|
|
bool MarlinUI::defer_return_to_status; |
|
|
bool MarlinUI::defer_return_to_status; |
|
|
#endif |
|
|
#endif |
|
|