This commit is contained in:
sergiuToporjinschi
2022-01-30 10:24:09 +02:00
parent 34d20cc80f
commit 3138e90b9e
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -82,5 +82,4 @@ def __plugin_load__():
"octoprint.comm.protocol.gcode.received": __plugin_implementation__.gCodeReceived,
"octoprint.comm.protocol.gcode.sending": __plugin_implementation__.gCodeSending,
"octoprint.comm.protocol.temperatures.received": __plugin_implementation__.processTemp
# "octoprint.comm.protocol.atcommand.sending": __plugin_implementation__.comm_protocol_atcommand_sending
}
+1
View File
@@ -70,6 +70,7 @@ class Hooks():
threading.Thread(target=event["func"], args=(self, temps, *event["args"])).start()
self.events.remove(event)
## Registering a temp event
def registerEventTemp(self, tool, targetTemp, func, *arguments):
if func is None:
self._logger.warn("registerEventTemp: Attempt to register event without a function")