revisit starting point. will be refactored into prepare in the future

This commit is contained in:
Stewart Allen 2023-01-23 13:34:47 -05:00
commit 9dd2069887

View file

@ -215,7 +215,7 @@ CAM.export = function(print, online) {
if (points === 0) { if (points === 0) {
pos.x = pos.y = pos.z = 0; pos.x = pos.y = pos.z = 0;
points++; points++;
if (spro.camFirstZMax || newpos.z >= pos.z) { if (spro.camFirstZMax) {
moveTo({ moveTo({
// speed: Infinity, // speed: Infinity,
tool: out.tool, tool: out.tool,
@ -230,8 +230,7 @@ CAM.export = function(print, online) {
}, { }, {
dx: 1, dy: 1, dz: 0, time: 0 dx: 1, dy: 1, dz: 0, time: 0
}); });
points--; } else {
} else if (newpos.z <= pos.z) {
moveTo({ moveTo({
// speed: Infinity, // speed: Infinity,
tool: out.tool, tool: out.tool,
@ -246,8 +245,8 @@ CAM.export = function(print, online) {
}, { }, {
dx: 0, dy: 0, dz: 1, time: 0 dx: 0, dy: 0, dz: 1, time: 0
}); });
points--;
} }
points--;
return; return;
} }