Skip to content

Commit

Permalink
version bump, use queue_Z and not grblZ when checking against depth o…
Browse files Browse the repository at this point in the history
…f cut
  • Loading branch information
paukstelis committed Aug 9, 2024
1 parent f8133f2 commit 7812114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octoprint_latheengraver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def rot_trans_adjust(self, bvalues):

def start_termination(self):
#need these commands to be queued, so don't use Force
self._printer.commands(["G0 Z5", "M5", "M30", "TERMINATE"], force=False)
self._printer.commands(["G0 Z5", "M5", "M30", "TERMINATE"], force=True)

# #-- gcode sending hook
def hook_gcode_sending(self, comm_instance, phase, cmd, cmd_type, gcode, *args, **kwargs):
Expand Down Expand Up @@ -1291,7 +1291,7 @@ def hook_gcode_sending(self, comm_instance, phase, cmd, cmd_type, gcode, *args,
found = True
foundZ = True
#Don't let deep cuts get through
if self.template and self.cut_depth and self.grblZ < self.cut_depth:
if self.template and self.cut_depth and self.queue_Z < self.cut_depth:
return (None, )

#ADD A and B here
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.5"
plugin_version = "1.0.6"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 7812114

Please sign in to comment.