Scott Lahteine 6 лет назад
Родитель
Сommit
7f225b9421
1 измененных файлов: 8 добавлений и 4 удалений
  1. 8
    4
      Marlin/src/lcd/ultralcd.cpp

+ 8
- 4
Marlin/src/lcd/ultralcd.cpp Просмотреть файл

@@ -29,13 +29,10 @@
29 29
   #if ENABLED(SDSUPPORT)
30 30
     #include "../sd/cardreader.h"
31 31
   #endif
32
+
32 33
   #if ENABLED(EXTENSIBLE_UI)
33 34
     #define START_OF_UTF8_CHAR(C) (((C) & 0xC0u) != 0x80u)
34 35
   #endif
35
-
36
-  #define MAX_MESSAGE_LENGTH 63
37
-  uint8_t MarlinUI::status_message_level; // = 0
38
-  char MarlinUI::status_message[MAX_MESSAGE_LENGTH + 1];
39 36
 #endif
40 37
 
41 38
 #if HAS_SPI_LCD
@@ -85,10 +82,17 @@
85 82
   #else
86 83
     #define MAX_MESSAGE_LENGTH CHARSIZE * 2 * (LCD_WIDTH)
87 84
   #endif
85
+#elif ENABLED(EXTENSIBLE_UI)
86
+  #define MAX_MESSAGE_LENGTH 63
88 87
 #else
89 88
   #define MAX_MESSAGE_LENGTH CHARSIZE * (LCD_WIDTH)
90 89
 #endif
91 90
 
91
+#if HAS_SPI_LCD || ENABLED(EXTENSIBLE_UI)
92
+  uint8_t MarlinUI::status_message_level; // = 0
93
+  char MarlinUI::status_message[MAX_MESSAGE_LENGTH + 1];
94
+#endif
95
+
92 96
 #if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS
93 97
   bool MarlinUI::defer_return_to_status;
94 98
 #endif

Загрузка…
Отмена
Сохранить