Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas-Karl Pietrowski <thopiekar@googlemail.com>2016-03-15 14:55:08 +0300
committerThomas-Karl Pietrowski <thopiekar@googlemail.com>2016-03-15 14:55:08 +0300
commit148c13ac31a644fc0b1d8f398d27de6087557170 (patch)
tree8169193e01ff1360b4244a3c09642946dafe579a /plugins/USBPrinting/PrinterConnection.py
parent8197e8492729ba40efac9546ca628215e2279ecf (diff)
Removing unused imports, fixing a indent and adding more logging
* Added the logging here, because it was called "except Exception as e:", so "e" seems to be something relevant.
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r--plugins/USBPrinting/PrinterConnection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/USBPrinting/PrinterConnection.py b/plugins/USBPrinting/PrinterConnection.py
index d28324b71c..1e5aa89b42 100644
--- a/plugins/USBPrinting/PrinterConnection.py
+++ b/plugins/USBPrinting/PrinterConnection.py
@@ -12,10 +12,8 @@ import os.path
from UM.Application import Application
from UM.Signal import Signal, SignalEmitter
-from UM.Resources import Resources
from UM.Logger import Logger
from UM.OutputDevice.OutputDevice import OutputDevice
-from UM.OutputDevice import OutputDeviceError
from UM.PluginRegistry import PluginRegistry
from PyQt5.QtQuick import QQuickView
@@ -337,6 +335,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
try:
self._connect_thread.join()
except Exception as e:
+ Logger.log("d", "PrinterConnection.close: %s (expected)", e)
pass # This should work, but it does fail sometimes for some reason
self._connect_thread = threading.Thread(target=self._connect)
@@ -374,7 +373,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
@pyqtSlot()
def homeHead(self):
- self._sendCommand("G28")
+ self._sendCommand("G28")
## Directly send the command, withouth checking connection state (eg; printing).
# \param cmd string with g-code
@@ -457,6 +456,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
self._extruder_temperatures[index] = temperature
self.extruderTemperatureChanged.emit()
except Exception as e:
+ Logger.log("d", "PrinterConnection._setExtruderTemperature: ", e)
pass
## Private function to set the temperature of the bed.