Last active
May 23, 2024 11:33
-
-
Save foosel/77e4792921db744a157764f66d1d72a5 to your computer and use it in GitHub Desktop.
OctoPrint plugin that rewrites received wait responses to echo:busy processing for broken firmware misunderstanding when wait should be used. Place in ~/.octoprint/plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import logging | |
def rewrite_wait_to_busy(comm_instance, line, *args, **kwargs): | |
if line == "wait" or line.startswith("wait"): | |
return "echo:busy processing" | |
else: | |
return line | |
__plugin_name__ = "Rewrite wait to busy" | |
__plugin_description__ = "Rewrites received wait responses to echo:busy processing for broken firmware misunderstanding when wait should be used" | |
__plugin_author__ = "Gina Häußge" | |
__plugin_hooks__ = { | |
"octoprint.comm.protocol.gcode.received": rewrite_wait_to_busy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many thanks ! That little plugin helped me getting my Tronxy X5SA 24V to work with Octoprint (as far as i can see so far by printing the test-cube)