Commit b265820b authored by Simone's avatar Simone

Update Marlin_main.cpp

Enable LCD contrast gcode only if there is a pin decleared
parent ba8f964e
...@@ -5211,7 +5211,7 @@ void process_commands() ...@@ -5211,7 +5211,7 @@ void process_commands()
} }
break; break;
#ifdef DOGLCD #if defined(DOGLCD) && LCD_CONTRAST >= 0
case 250: //M250 Set LCD contrast value: C<value> (value 0..63) case 250: //M250 Set LCD contrast value: C<value> (value 0..63)
{ {
if (code_seen('C')) lcd_setcontrast(((int)code_value())&63); if (code_seen('C')) lcd_setcontrast(((int)code_value())&63);
...@@ -6659,3 +6659,4 @@ void calculate_volumetric_multipliers() { ...@@ -6659,3 +6659,4 @@ void calculate_volumetric_multipliers() {
for (int i=0; i<EXTRUDERS; i++) for (int i=0; i<EXTRUDERS; i++)
volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]); volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment