.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user