mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:59:00 +08:00
Parse heatbed temperatures even if no extruder temperature is sent. Attempts to fix bug #3332
This commit is contained in:
parent
d62dbe5187
commit
946a09eb62
@ -280,7 +280,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
self.sendCommand("M105")
|
self.sendCommand("M105")
|
||||||
self._last_temperature_request = time()
|
self._last_temperature_request = time()
|
||||||
|
|
||||||
if b"ok T:" in line or line.startswith(b"T:"): # Temperature message
|
if b"ok T:" in line or line.startswith(b"T:") or b"ok B:" in line or line.startswith(b"B:"): # Temperature message. 'T:' for extruder and 'B:' for bed
|
||||||
extruder_temperature_matches = re.findall(b"T(\d*): ?([\d\.]+) ?\/?([\d\.]+)?", line)
|
extruder_temperature_matches = re.findall(b"T(\d*): ?([\d\.]+) ?\/?([\d\.]+)?", line)
|
||||||
# Update all temperature values
|
# Update all temperature values
|
||||||
for match, extruder in zip(extruder_temperature_matches, self._printers[0].extruders):
|
for match, extruder in zip(extruder_temperature_matches, self._printers[0].extruders):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user