🎨 Minor code style fixes
This commit is contained in:
1 parent
8bf0ef5ddb
commit
063ad6cb3b
2 files changed
+5
-4
No files matched your search
@@ -223,7 +223,7 @@ class ActionCommandPromptPlugin(octoprint.plugin.AssetPlugin,
|
||||
if "{choice}" in self._command:
|
||||
self._printer.commands([self._command.format(choice=choice)])
|
||||
else:
|
||||
self._printer.commands(["{command} S{choice}".format(command=self._command,
|
||||
self._printer.commands(["{command} S{choice}".format(command=self._command,
|
||||
choice=choice)])
|
||||
|
||||
|
||||
|
||||
@@ -3927,9 +3927,10 @@ class MachineCom(object):
|
||||
tags = set()
|
||||
|
||||
if gcode in self._emergency_commands and gcode != "M112":
|
||||
msg = "Force-sending {} to the printer".format(gcode)
|
||||
self._logger.info(msg)
|
||||
return self._emergency_force_send(cmd, msg, gcode=gcode, *args, **kwargs)
|
||||
return self._emergency_force_send(cmd,
|
||||
"Force-sending {} to the printer".format(gcode),
|
||||
gcode=gcode,
|
||||
*args, **kwargs)
|
||||
|
||||
if self.isPrinting() and gcode in self._pausing_commands and not "trigger:cancel" in tags and not "trigger:pause" in tags:
|
||||
self._logger.info("Pausing print job due to command {}".format(gcode))
|
||||
|
||||
Reference in new issue
Block a user