mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Temperatures for both extruders are now correctly retrieved
CURA-1036
This commit is contained in:
parent
7d258485c8
commit
61565561ff
1 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,9 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
## It's okay to leave this for now, as this plugin is um3 only (and has 2 extruders by definition)
|
||||
self._num_extruders = 2
|
||||
|
||||
self._hotend_temperatures = [0] * self._num_extruders
|
||||
self._target_hotend_temperatures = [0] * self._num_extruders
|
||||
|
||||
self._api_version = "1"
|
||||
self._api_prefix = "/api/v" + self._api_version + "/"
|
||||
self.setName(key)
|
||||
|
@ -96,7 +99,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
# values / variables
|
||||
def _spliceJSONData(self):
|
||||
# Check for hotend temperatures
|
||||
for index in range(0, self._num_extruders - 1):
|
||||
for index in range(0, self._num_extruders):
|
||||
temperature = self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["temperature"]["current"]
|
||||
self._setHotendTemperature(index, temperature)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue