Pid HotEnd working

This commit is contained in:
sergiuToporjinschi
2022-02-03 23:11:10 +02:00
parent c0204b9de6
commit c3f86acc7d
7 changed files with 132 additions and 33 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class Hooks():
reg = waiter["regex"]
waiter["callCount"] = waiter["callCount"] + 1
if reg.match(line):
args = (line, *waiter["args"])
args = (line, reg, *waiter["args"])
if isinstance(waiter["func"], types.FunctionType):
args = (self, *args)
threading.Thread(target=waiter["func"], args=args).start()