File tree 1 file changed +4
-33
lines changed
1 file changed +4
-33
lines changed Original file line number Diff line number Diff line change 22
22
23
23
#include " ../../inc/MarlinConfig.h"
24
24
25
- #if HAS_LCD_CONTRAST || TFT_HAS_COLOR
25
+ #if HAS_LCD_CONTRAST
26
26
27
27
#include " ../gcode.h"
28
28
#include " ../../lcd/ultralcd.h"
29
- #include " ../../lcd/dogm/ultralcd_DOGM.h"
30
29
31
30
/* *
32
31
* M250: Read and optionally set the LCD contrast
33
32
*/
34
33
void GcodeSuite::M250 () {
35
-
36
- #if HAS_LCD_CONTRAST
37
- if (parser.seen (' C' )) ui.set_contrast (parser.value_int ());
38
- SERIAL_ECHOLNPAIR (" LCD Contrast: " , ui.contrast );
39
- #endif // HAS_LCD_CONTRAST
40
-
41
- //
42
- // Warning this component is still pretty stupid
43
- //
44
-
45
- #if TFT_HAS_COLOR
46
- if (parser.seen (' B' ))
47
- {
48
- bg_color = parser.value_ushort ();
49
- SERIAL_ECHOLNPAIR (" TFT Background Color: " , bg_color);
50
- }
51
-
52
- if (parser.seen (' F' ))
53
- {
54
- ui_color = parser.value_ushort ();
55
- SERIAL_ECHOLNPAIR (" TFT Foreground Color: " , ui_color);
56
- }
57
-
58
- if (parser.seen (' P' ))
59
- {
60
- switchColorPreset (parser.value_byte ());
61
- SERIAL_ECHOLN (" Switched Color Preset: " );
62
- }
63
- #endif // TFT_HAS_COLOR
64
-
34
+ if (parser.seen (' C' )) ui.set_contrast (parser.value_int ());
35
+ SERIAL_ECHOLNPAIR (" LCD Contrast: " , ui.contrast );
65
36
}
66
37
67
- #endif // HAS_LCD_CONTRAST || TFT_HAS_COLOR
38
+ #endif // HAS_LCD_CONTRAST
You can’t perform that action at this time.
0 commit comments