Sfoglia il codice sorgente

Make sure a ROM is selected for ULTRA_LCD

Scott Lahteine 9 anni fa
parent
commit
9eed8c8cf0
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      Marlin/language.h

+ 3
- 2
Marlin/language.h Vedi File

226
     #define STR_h3 "3"
226
     #define STR_h3 "3"
227
     #define STR_Deg "\271"
227
     #define STR_Deg "\271"
228
     #define STR_THERMOMETER "\002"
228
     #define STR_THERMOMETER "\002"
229
-  #endif
230
-  #ifdef DISPLAY_CHARSET_HD44780_WESTERN // HD44780 ROM Code: A02 (Western)
229
+  #elif defined(DISPLAY_CHARSET_HD44780_WESTERN) // HD44780 ROM Code: A02 (Western)
231
     #define STR_Ae "\216"
230
     #define STR_Ae "\216"
232
     #define STR_ae "\204"
231
     #define STR_ae "\204"
233
     #define STR_Oe "\211"
232
     #define STR_Oe "\211"
239
     #define STR_h3 "\263"
238
     #define STR_h3 "\263"
240
     #define STR_Deg "\337"
239
     #define STR_Deg "\337"
241
     #define STR_THERMOMETER "\002"
240
     #define STR_THERMOMETER "\002"
241
+  #elif defined(ULTRA_LCD)
242
+    #error You must enable either DISPLAY_CHARSET_HD44780_JAPAN or DISPLAY_CHARSET_HD44780_WESTERN for your LCD controller.
242
   #endif
243
   #endif
243
 #endif
244
 #endif
244
 /*
245
 /*

Loading…
Annulla
Salva