.
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
|
||||
|
||||
import octoprint.plugin
|
||||
|
||||
from octoprint_CalibrationTools import (api, hooks, models)
|
||||
from octoprint_CalibrationTools import api, hooks, models
|
||||
|
||||
defaultSettings = {
|
||||
"eSteps": {
|
||||
@@ -16,6 +16,7 @@ defaultSettings = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class CalibrationtoolsPlugin(
|
||||
octoprint.plugin.StartupPlugin,
|
||||
octoprint.plugin.TemplatePlugin,
|
||||
@@ -32,7 +33,7 @@ class CalibrationtoolsPlugin(
|
||||
self.collectCommand = False
|
||||
|
||||
def on_after_startup(self):
|
||||
self._logger.debug("----------------[ CalibrationTools ]----------------")
|
||||
self._logger.debug("---------------[ CalibrationTools ]---------------")
|
||||
self.data = self.getModel()
|
||||
self.collectCommand = True
|
||||
self._printer.commands("M92")
|
||||
|
||||
@@ -69,8 +69,7 @@ class API(octoprint.plugin.SimpleApiPlugin):
|
||||
|
||||
if command == CMD_SAVE_E_STEPS:
|
||||
cmds = ["M92 E%(newESteps)s" % data, "M500"]
|
||||
if self.
|
||||
cmds = cmds + ["M104 S0"]
|
||||
cmds = cmds + ["M104 S0"]
|
||||
self._printer.commands()
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user