* Fix save 0 steps/mm- now it shows an error if steps<-0
This commit is contained in:
committed by
GitHub
parent
6a02270135
commit
29ff606e33
@@ -55,18 +55,8 @@
|
||||
self.restart = function () { OctoPrint.system.executeCommand('core', 'restart') };
|
||||
self.test = function () {
|
||||
OctoPrint.simpleApiCommand("CalibrationTools", "pid_save").done(function (response) {
|
||||
new PNotify({
|
||||
title: "Saved",
|
||||
text: "PID values successfully saved",
|
||||
type: "info"
|
||||
});
|
||||
}).fail(function (response) {
|
||||
new PNotify({
|
||||
title: "Test request",
|
||||
text: response.responseJSON.error.msg,
|
||||
type: "error"
|
||||
});
|
||||
});
|
||||
self.generalVM.notifyInfo("Saved", "PID values successfully saved");
|
||||
}).fail(self.generalVM.failFunction);;
|
||||
};
|
||||
|
||||
self.onSettingsClick = function () {
|
||||
|
||||
@@ -106,7 +106,8 @@ reliable.
|
||||
<div data-bind="class: $root.columnFieldCls()">
|
||||
<div class="input-prepend input-append">
|
||||
{{ snipped.linkToMarlin("M092", "Marlin website") }}
|
||||
<span class="add-on" title="Command to change number of steps/mm for E axe" data-bind="text: $root.results.newStepsDisplay"></span>
|
||||
<span class="add-on" title="Command to change number of steps/mm for E axe">M92 E</span>
|
||||
<input type="number" title="Command to change number of steps/mm for E axe" class="input-small numberDisplay" step="0.01" min="10" max="400" data-bind="value: $root.results.newSteps(), enable:false">
|
||||
{{ snipped.m500Icon() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -80,7 +80,7 @@ sized.","<a href='https://teachingtechyt.github.io/calibration.html#xyzsteps' ta
|
||||
<div class="input-prepend input-append">
|
||||
{{ snipped.linkToMarlin("M092", "Marlin website") }}
|
||||
<span class="add-on" title="">M92 X</span>
|
||||
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.newSteps.X">
|
||||
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.newSteps.X()">
|
||||
<span class="add-on" title=""> Y</span>
|
||||
<input type="number" id="" class="input-small numberDisplay" step="0.001" min="0" max="100" title="" data-bind="value: $root.eStepsXYZ.newSteps.Y">
|
||||
<span class="add-on" title=""> Z</span>
|
||||
|
||||
Reference in New Issue
Block a user