From ccfe8e716f5fc7725d3322f558795abb6441e5a6 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 20 Sep 2024 13:05:43 -0400 Subject: [PATCH] Fix an error in power output that impacted laser jobs. --- octoprint_latheengraver/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_latheengraver/__init__.py b/octoprint_latheengraver/__init__.py index 4459e43..47f95de 100644 --- a/octoprint_latheengraver/__init__.py +++ b/octoprint_latheengraver/__init__.py @@ -881,7 +881,7 @@ def hook_gcode_queuing(self, comm_instance, phase, cmd, cmd_type, gcode, tags, * def assemble_command(self, newcmd, assembly): cmd = newcmd for key, value in assembly.items(): - if value: + if value is not None: cmd = cmd+" {0}{1:.4f}".format(str(key), value) return cmd diff --git a/setup.py b/setup.py index e15017b..06ddfeb 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "LatheEngraver Support" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.0.13" +plugin_version = "1.0.14" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module