Migrate from info to debug

This commit is contained in:
sergiuToporjinschi
2022-01-29 21:51:58 +02:00
parent b5cd1b4c22
commit 4bca9f9795
7 changed files with 73 additions and 62 deletions
@@ -14,7 +14,7 @@
border-radius: 4px;
}
#tab_plugin_CalibrationTools .tab-content {
#tab_plugin_CalibrationTools .tab-content, #tab_plugin_CalibrationTools .tab-content > .tab-pane {
border: none;
}
@@ -1,14 +1,3 @@
//Notification
// new PNotify({
// title: "Success",
// text: _.sprintf(text, {
// command: _.escape(commandSpec.name)
// }),
// type: "success"
// });
$(function () {
function CalibrationToolsViewModel(parameters) {
var self = this;
@@ -54,19 +43,7 @@ $(function () {
self.steps["E"](response.data.E);
}
self.calibrateESteps = function () {
// OctoPrint.simpleApiCommand("loadSteps")
// OctoPrint.control.sendGcodeWithParameters("M92").done(function (responseM92) {
// OctoPrint.simpleApiGet("CalibrationTools").done(function (response) {
// console.log("CalibrationTools");
// self.from_json(response);
// });
// });
console.log("calibrateESteps");
console.log(self.steps.E(), self.results.remainedLength(), self.results.newSteps());
}
self.loadStepsFromEPROM = function () {
self.loadESteps = function () {
OctoPrint.simpleApiCommand("CalibrationTools","loadSteps").done(function (response) {
self.from_json(response);
})