Skip to content

Commit

Permalink
v1.0.384
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Dec 4, 2024
1 parent 474c0e8 commit 53bd51c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions app/wizards/calibration/calibrate-servo.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
let servoCalibrationDialogOpen = false;

// Calibration Wizard
function penUpSend(data) {
if (!servoCalibrationDialogOpen) return; // Prevent sending commands if modal is closed
console.log("Move to " + data)
sendGcode("M3 S" + data);
}

function penDownSend(data) {
if (!servoCalibrationDialogOpen) return; // Prevent sending commands if modal is closed
console.log("Move to " + data)
sendGcode("M3 S" + data);
}





function servocalibrate() {

var servoMaxScale = parseInt(grblParams.$30);


var servocaltemplate = `
<div id="servocalstep1">
Expand Down Expand Up @@ -112,10 +111,15 @@ function servocalibrate() {
cls: "js-dialog-close",
onclick: function() {
//
servoCalibrationDialogOpen = false; // Dialog is closed
}
}],
defaultAction: false
});

servoCalibrationDialogOpen = true; // Dialog is now open


setTimeout(function() {
$('#penupslider').data('slider').val(servoMaxScale / 2)
}, 100);
Expand Down Expand Up @@ -159,6 +163,6 @@ function closeServoCal() {
localStorage.setItem("servo-calibration", JSON.stringify(servo));
Metro.dialog.close($('#servocalstep1').parent().parent());
console.log(servo)

servoCalibrationDialogOpen = false; // Dialog is closed
askToResetOnGrblSettingsChange();
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "OpenBuildsCONTROL",
"version": "1.0.383",
"version": "1.0.384",
"license": "AGPL-3.0",
"description": "OpenBuildsCONTROL CNC Machine Host Software",
"author": "github.com/openbuilds <[email protected]>",
Expand Down

0 comments on commit 53bd51c

Please sign in to comment.