diff options
author | Jaime van Kessel <nallath@gmail.com> | 2015-08-25 14:34:25 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2015-08-25 14:34:25 +0300 |
commit | 9b6ed1f0ee3627799d9d74d8e0529d07ded742ef (patch) | |
tree | 0ca1cff3684956462e541450ccd111240d47fd08 /plugins/USBPrinting/PrinterConnection.py | |
parent | 86b6f608092dd5eec732c52afb3e534ffb06d5b4 (diff) |
Added self to output device signals
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r-- | plugins/USBPrinting/PrinterConnection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/USBPrinting/PrinterConnection.py b/plugins/USBPrinting/PrinterConnection.py index 76c1f5a49b..3ddd3ea763 100644 --- a/plugins/USBPrinting/PrinterConnection.py +++ b/plugins/USBPrinting/PrinterConnection.py @@ -164,7 +164,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter): def printGCode(self, gcode_list): if self.isPrinting() or not self._is_connected: Logger.log("d", "Printer is busy or not connected, aborting print") - self.writeError.emit() + self.writeError.emit(self) return self._gcode.clear() @@ -181,7 +181,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter): for i in range(0, 4): #Push first 4 entries before accepting other inputs self._sendNextGcodeLine() - self.writeFinished.emit() + self.writeFinished.emit(self) ## Get the serial port string of this connection. # \return serial port |