mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Log when pre-heating or cancelling pre-heat
To help debugging and because it's a user interaction. Contributes to issue CURA-3161.
This commit is contained in:
parent
75a50b73c2
commit
3cc11ecae5
2 changed files with 4 additions and 0 deletions
|
@ -650,6 +650,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||
# ignored because there is no g-code to set this.
|
||||
@pyqtSlot(float, float)
|
||||
def preheatBed(self, temperature, duration):
|
||||
Logger.log("i", "Pre-heating the bed to %i degrees.", temperature)
|
||||
self._setTargetBedTemperature(temperature)
|
||||
|
||||
## Cancels pre-heating the heated bed of the printer.
|
||||
|
@ -657,4 +658,5 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||
# If the bed is not pre-heated, nothing happens.
|
||||
@pyqtSlot()
|
||||
def cancelPreheatBed(self):
|
||||
Logger.log("i", "Cancelling pre-heating of the bed.")
|
||||
self._setTargetBedTemperature(0)
|
Loading…
Add table
Add a link
Reference in a new issue