Don't send T with temperature set commands for shared nozzles

Fixes #1907
This commit is contained in:
Gina Häußge 2017-05-09 09:29:52 +02:00
parent 399ec5a909
commit 2caa10f15e

View file

@ -331,7 +331,8 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
if heater.startswith("tool"):
printer_profile = self._printerProfileManager.get_current_or_default()
extruder_count = printer_profile["extruder"]["count"]
if extruder_count > 1:
shared_nozzle = printer_profile["extruder"]["sharedNozzle"]
if extruder_count > 1 and not shared_nozzle:
toolNum = int(heater[len("tool"):])
self.commands("M104 T%d S%f" % (toolNum, value))
else: