Skip to content

Commit

Permalink
fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
synman committed Dec 13, 2021
1 parent 5a4d4c2 commit 46f0e41
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions octoprint_bettergrblsupport/__init__.py
Original file line number Diff line number Diff line change
@@ -434,9 +434,10 @@ def hook_gcode_sending(self, comm_instance, phase, cmd, cmd_type, gcode, *args,

return self.helloCommand

# suppress comments
if cmd.upper().lstrip().startswith(';') or cmd.upper().lstrip().startswith('('):
self._logger.debug('Ignoring comment [%s]', cmd)
# suppress comments and extraneous commands that may cause wayward
# grbl instances to error out
if cmd.upper().lstrip().startswith(tuple([';', '(', '%'])):
self._logger.debug('Ignoring extraneous [%s]', cmd)
return (None, )

# suppress reset line #s
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
plugin_name = "Better Grbl Support"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.7.6dev1"
plugin_version = "1.7.6dev2"

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

0 comments on commit 46f0e41

Please sign in to comment.