custom code M92 set axis_steps_per_unit

This commit is contained in:
tonokip 2010-05-03 17:51:07 -07:00
parent abffc3fb26
commit 2bd1060eaa

View file

@ -29,6 +29,7 @@
// M83 - Set E codes relative while in Absolute Coordinates (G90) mode
// M84 - Disable steppers until next move
// M85 - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
// M92 - Set axis_steps_per_unit - same syntax as G92
//Stepper Movement Variables
bool direction_x, direction_y, direction_z, direction_e;
@ -322,6 +323,12 @@ inline void process_commands()
code_seen('S');
max_inactive_time = code_value()*1000;
break;
case 92: // M92
if(code_seen('X')) x_steps_per_unit = code_value();
if(code_seen('Y')) y_steps_per_unit = code_value();
if(code_seen('Z')) z_steps_per_unit = code_value();
if(code_seen('E')) e_steps_per_unit = code_value();
break;
}
}