Merge gcode processing into one function

Instead of functions for each gcode generator, one function that processes common changes plus specific for each test. Much less code and easier to add future tests.
This commit is contained in:
lawgicau
2021-07-15 00:25:56 +10:00
parent 629778e62f
commit 37752fd6df
9 changed files with 725 additions and 319 deletions

View File

@ -6,14 +6,13 @@ M82
M106 S0
M140 S60
M190 S60
M104 S210 T0
M109 S210 T0
;temp0a
;temp0b
G28 ; home all axes
;G29 ; probe ABL
;M420 S1 ; restore ABL mesh
;customstart
G0 Z3; fix for delta printers that home at max
`;
G0 Z3; fix for delta printers that home at max`;
var commonEnd = `G28 X0 ; home X axis
M106 S0 ; turn off cooling fan