🐛 Always report all tools in sharedNozzle setups

Fixes #3177

See also https://community.octoprint.org/t/9620/4
This commit is contained in:
Gina Häußge committed 2019-05-21 14:29:15 +02:00
1 parent 9ff44c49a6
commit e94f789b72
1 file changed
+3 -1
+3 -1
View File
@@ -1542,6 +1542,8 @@ class MachineCom(object):
current_tool_key = "T%d" % current_tool
maxToolNum, parsedTemps = parse_temperature_line(line, current_tool)
maxToolNum = max(maxToolNum, self._printerProfileManager.get_current_or_default()["extruder"]["count"] - 1)
for name, hook in self._temperature_hooks.items():
try:
parsedTemps = hook(self, parsedTemps)
@@ -1551,7 +1553,7 @@ class MachineCom(object):
self._logger.exception("Error while processing temperatures in {}, skipping".format(name),
extra=dict(plugin=name))
if current_tool_key in parsedTemps.keys():
if current_tool_key in parsedTemps:
shared_nozzle = self._printerProfileManager.get_current_or_default()["extruder"]["sharedNozzle"]
for n in range(maxToolNum + 1):
tool = "T%d" % n