Explorar el Código

Merge pull request #5022 from esenapaj/Fix-for-the-PR-#4553

Fix for the PR #4553 (Save bytes for custom chars (Hitachi LCD))
Scott Lahteine hace 8 años
padre
commit
483082387c
Se han modificado 1 ficheros con 12 adiciones y 10 borrados
  1. 12
    10
      Marlin/ultralcd_impl_HD44780.h

+ 12
- 10
Marlin/ultralcd_impl_HD44780.h Ver fichero

@@ -224,6 +224,16 @@ static void lcd_set_custom_characters(
224 224
     B10001,
225 225
     B01110
226 226
   };
227
+  static byte uplevel[8] = {
228
+    B00100,
229
+    B01110,
230
+    B11111,
231
+    B00100,
232
+    B11100,
233
+    B00000,
234
+    B00000,
235
+    B00000
236
+  }; //thanks joris
227 237
   static byte feedrate[8] = {
228 238
     B11100,
229 239
     B10000,
@@ -252,16 +262,6 @@ static void lcd_set_custom_characters(
252 262
   lcd.createChar(LCD_STR_CLOCK[0], clock);
253 263
 
254 264
   #if ENABLED(SDSUPPORT)
255
-    static byte uplevel[8] = {
256
-      B00100,
257
-      B01110,
258
-      B11111,
259
-      B00100,
260
-      B11100,
261
-      B00000,
262
-      B00000,
263
-      B00000
264
-    }; //thanks joris
265 265
     static byte refresh[8] = {
266 266
       B00000,
267 267
       B00110,
@@ -330,6 +330,8 @@ static void lcd_set_custom_characters(
330 330
       lcd.createChar(LCD_STR_FOLDER[0], folder);
331 331
     #endif
332 332
 
333
+  #else
334
+    lcd.createChar(LCD_STR_UPLEVEL[0], uplevel);
333 335
   #endif
334 336
 }
335 337
 

Loading…
Cancelar
Guardar