Browse Source

Aplied HAS_LCD_CONTRAST also to Marlin_main.cpp

and cleaned typo.
AnHardt 9 years ago
parent
commit
6a514f3dc9
2 changed files with 5 additions and 5 deletions
  1. 1
    1
      Marlin/Conditionals.h
  2. 4
    4
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Conditionals.h View File

@@ -163,7 +163,7 @@
163 163
   #ifdef DOGLCD
164 164
     #define HAS_LCD_CONTRAST
165 165
     #ifdef U8GLIB_ST7920
166
-      #undefine HAS_LCD_CONTRAST
166
+      #undef HAS_LCD_CONTRAST
167 167
     #endif
168 168
   #endif
169 169
 

+ 4
- 4
Marlin/Marlin_main.cpp View File

@@ -4083,7 +4083,7 @@ inline void gcode_M226() {
4083 4083
 
4084 4084
 #endif // CHDK || PHOTOGRAPH_PIN
4085 4085
 
4086
-#ifdef DOGLCD
4086
+#ifdef HAS_LCD_CONTRAST
4087 4087
 
4088 4088
   /**
4089 4089
    * M250: Read and optionally set the LCD contrast
@@ -4095,7 +4095,7 @@ inline void gcode_M226() {
4095 4095
     SERIAL_EOL;
4096 4096
   }
4097 4097
 
4098
-#endif // DOGLCD
4098
+#endif // HAS_LCD_CONTRAST
4099 4099
 
4100 4100
 #ifdef PREVENT_DANGEROUS_EXTRUDE
4101 4101
 
@@ -5081,11 +5081,11 @@ void process_commands() {
5081 5081
           break;
5082 5082
       #endif // CHDK || PHOTOGRAPH_PIN
5083 5083
 
5084
-      #ifdef DOGLCD
5084
+      #ifdef HAS_LCD_CONTRAST
5085 5085
         case 250: // M250  Set LCD contrast value: C<value> (value 0..63)
5086 5086
           gcode_M250();
5087 5087
           break;
5088
-      #endif // DOGLCD
5088
+      #endif // HAS_LCD_CONTRAST
5089 5089
 
5090 5090
       #ifdef PREVENT_DANGEROUS_EXTRUDE
5091 5091
         case 302: // allow cold extrudes, or set the minimum extrude temperature

Loading…
Cancel
Save