add pos_x, pos_y, pos_z gcode macro vars

This commit is contained in:
Stewart Allen 2022-12-10 19:52:51 -05:00
commit cabde0b369
2 changed files with 4 additions and 1 deletions

View file

@ -512,6 +512,9 @@ FDM.export = function(print, online, ondone, ondebug) {
return;
}
last = line;
subst.pos_x = epos.x.round(decimals);
subst.pos_y = epos.y.round(decimals);
subst.pos_z = epos.z.round(decimals);
append(line);
}