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:
authordaid <daid303@gmail.com>2015-11-27 15:50:44 +0300
committerdaid <daid303@gmail.com>2015-11-27 15:50:44 +0300
commit743b403b2964e05d3b4b818341f0397cf46b490b (patch)
tree291bef6b5c7a34976d397410815b0c72bbec94a0 /plugins/USBPrinting/PrinterConnection.py
parent938ac7a08b75d18fc292e9d16f8c0830ab6b0aea (diff)
Whole bunch of um-pep8 style fixes.
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r--plugins/USBPrinting/PrinterConnection.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/USBPrinting/PrinterConnection.py b/plugins/USBPrinting/PrinterConnection.py
index 341fe425b1..c19603c945 100644
--- a/plugins/USBPrinting/PrinterConnection.py
+++ b/plugins/USBPrinting/PrinterConnection.py
@@ -471,17 +471,17 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
self.showControlInterface()
def _setEndstopState(self, endstop_key, value):
- if endstop_key == b'x_min':
+ if endstop_key == b"x_min":
if self._x_min_endstop_pressed != value:
- self.endstopStateChanged.emit('x_min', value)
+ self.endstopStateChanged.emit("x_min", value)
self._x_min_endstop_pressed = value
- elif endstop_key == b'y_min':
+ elif endstop_key == b"y_min":
if self._y_min_endstop_pressed != value:
- self.endstopStateChanged.emit('y_min', value)
+ self.endstopStateChanged.emit("y_min", value)
self._y_min_endstop_pressed = value
- elif endstop_key == b'z_min':
+ elif endstop_key == b"z_min":
if self._z_min_endstop_pressed != value:
- self.endstopStateChanged.emit('z_min', value)
+ self.endstopStateChanged.emit("z_min", value)
self._z_min_endstop_pressed = value
## Listen thread function.
@@ -528,8 +528,8 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
pass
#TODO: temperature changed callback
elif b"_min" in line or b"_max" in line:
- tag, value = line.split(b':', 1)
- self._setEndstopState(tag,(b'H' in value or b'TRIGGERED' in value))
+ tag, value = line.split(b":", 1)
+ self._setEndstopState(tag,(b"H" in value or b"TRIGGERED" in value))
if self._is_printing:
if line == b"" and time.time() > ok_timeout: