mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 16:25:55 +08:00
Temperatures for both extruders are now correctly retrieved
CURA-1036
This commit is contained in:
parent
7d258485c8
commit
61565561ff
@ -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)
|
## 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._num_extruders = 2
|
||||||
|
|
||||||
|
self._hotend_temperatures = [0] * self._num_extruders
|
||||||
|
self._target_hotend_temperatures = [0] * self._num_extruders
|
||||||
|
|
||||||
self._api_version = "1"
|
self._api_version = "1"
|
||||||
self._api_prefix = "/api/v" + self._api_version + "/"
|
self._api_prefix = "/api/v" + self._api_version + "/"
|
||||||
self.setName(key)
|
self.setName(key)
|
||||||
@ -96,7 +99,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
# values / variables
|
# values / variables
|
||||||
def _spliceJSONData(self):
|
def _spliceJSONData(self):
|
||||||
# Check for hotend temperatures
|
# 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"]
|
temperature = self._json_printer_state["heads"][0]["extruders"][index]["hotend"]["temperature"]["current"]
|
||||||
self._setHotendTemperature(index, temperature)
|
self._setHotendTemperature(index, temperature)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user