@ -146,16 +146,15 @@ CardReader card;
# endif
# endif
float homing_feedrate [ ] = HOMING_FEEDRATE ;
float homing_feedrate [ ] = HOMING_FEEDRATE ;
bool axis_relative_modes [ ] = AXIS_RELATIVE_MODES ;
bool axis_relative_modes [ ] = AXIS_RELATIVE_MODES ;
volatile int feedmultiply = 100 ; //100->1 200->2
int feedmultiply = 100 ; //100->1 200->2
int saved_feedmultiply ;
int saved_feedmultiply ;
volatile bool feedmultiplychanged = false ;
int extrudemultiply = 100 ; //100->1 200->2
volatile int extrudemultiply = 100 ; //100->1 200->2
float current_position [ NUM_AXIS ] = { 0.0 , 0.0 , 0.0 , 0.0 } ;
float current_position [ NUM_AXIS ] = { 0.0 , 0.0 , 0.0 , 0.0 } ;
float add_homeing [ 3 ] = { 0 , 0 , 0 } ;
float add_homeing [ 3 ] = { 0 , 0 , 0 } ;
float min_pos [ 3 ] = { X_MIN_POS , Y_MIN_POS , Z_MIN_POS } ;
float min_pos [ 3 ] = { X_MIN_POS , Y_MIN_POS , Z_MIN_POS } ;
float max_pos [ 3 ] = { X_MAX_POS , Y_MAX_POS , Z_MAX_POS } ;
float max_pos [ 3 ] = { X_MAX_POS , Y_MAX_POS , Z_MAX_POS } ;
uint8_t active_extruder = 0 ;
uint8_t active_extruder = 0 ;
unsigned char F anSpeed= 0 ;
int f anSpeed= 0 ;
# ifdef FWRETRACT
# ifdef FWRETRACT
bool autoretract_enabled = true ;
bool autoretract_enabled = true ;
@ -1124,14 +1123,14 @@ void process_commands()
# if FAN_PIN > -1
# if FAN_PIN > -1
case 106 : //M106 Fan On
case 106 : //M106 Fan On
if ( code_seen ( ' S ' ) ) {
if ( code_seen ( ' S ' ) ) {
F anSpeed= constrain ( code_value ( ) , 0 , 255 ) ;
f anSpeed= constrain ( code_value ( ) , 0 , 255 ) ;
}
}
else {
else {
F anSpeed= 255 ;
f anSpeed= 255 ;
}
}
break ;
break ;
case 107 : //M107 Fan Off
case 107 : //M107 Fan Off
F anSpeed = 0 ;
f anSpeed = 0 ;
break ;
break ;
# endif //FAN_PIN
# endif //FAN_PIN
@ -1372,7 +1371,6 @@ void process_commands()
if ( code_seen ( ' S ' ) )
if ( code_seen ( ' S ' ) )
{
{
feedmultiply = code_value ( ) ;
feedmultiply = code_value ( ) ;
feedmultiplychanged = true ;
}
}
}
}
break ;
break ;