summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware
diff options
context:
space:
mode:
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index f9ae699..06169d6 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -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;
}
}