Skip to content

Commit

Permalink
tweaking RTCM control commands..was not activated in one case
Browse files Browse the repository at this point in the history
  • Loading branch information
paukstelis committed Oct 11, 2024
1 parent 0ec7ed7 commit 3b3daaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions octoprint_latheengraver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,11 @@ def hook_script_onresume(self, comm, script_type, script_name, *args, **kwargs):
#these need to be in queuing to extend
def hook_gcode_queuing(self, comm_instance, phase, cmd, cmd_type, gcode, tags, *args, **kwargs):

if cmd.upper() == "RTCM":
self.RTCM = True
self._logger.info("Real-time coordinate modification activated")
return cmd

#if terminate has started, we aren't going to queue or send any more gcode, all commands are skipped
if self.TERMINATE and cmd.upper() != "M30":
cmd = None,
Expand Down Expand Up @@ -1104,8 +1109,6 @@ def hook_gcode_sending(self, comm_instance, phase, cmd, cmd_type, gcode, *args,

if cmd.upper() == "STOPBANGLE":
self.do_bangle = False
#turn off RTCM LOOK AT THIS AGAIN IF WANT THIS HERE
self.RTCM = False
self._logger.info('B angle matrix transformation off')
return (None, )

Expand Down Expand Up @@ -1189,10 +1192,12 @@ def hook_gcode_sending(self, comm_instance, phase, cmd, cmd_type, gcode, *args,

if cmd.upper() == "RTCM":
self.RTCM = True
self._logger.info("Real-time coordinate modification activated")
return (None, )

if cmd.upper() == "STOPRTCM":
self.RTCM = False
self._logger.info("Real-time coordinate modification not activated")
return (None, )

# Grbl 1.1 Realtime Commands (requires Octoprint 1.8.0+)
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.15"
plugin_version = "1.0.16"

# 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 3b3daaf

Please sign in to comment.