Skip to content

Instantly share code, notes, and snippets.

@foosel
foosel / rewrite_wait_to_busy.py
Last active Feb 10, 2021
OctoPrint plugin that rewrites received wait responses to echo:busy processing for broken firmware misunderstanding when wait should be used. Place in ~/.octoprint/plugins
View rewrite_wait_to_busy.py
# 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