Don't set target temp for tools that do not exist.
This commit is contained in:
parent
bedcbb80be
commit
4b5eff5ec6
1 changed files with 1 additions and 1 deletions
|
|
@ -2604,7 +2604,7 @@ class MachineCom(object):
|
|||
if not match and support_r:
|
||||
match = regexes_parameters["floatR"].search(cmd)
|
||||
|
||||
if match:
|
||||
if match and self.last_temperature.tools.get(toolNum) is not None:
|
||||
try:
|
||||
target = float(match.group("value"))
|
||||
self.last_temperature.set_tool(toolNum, target=target)
|
||||
|
|
|
|||
Loading…
Reference in a new issue