Don't set target temp for tools that do not exist.

This commit is contained in:
Shawn Bruce 2017-10-26 12:42:55 -04:00
parent bedcbb80be
commit 4b5eff5ec6

View file

@ -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)