From 9b6ed1f0ee3627799d9d74d8e0529d07ded742ef Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 25 Aug 2015 13:34:25 +0200 Subject: [PATCH] Added self to output device signals --- plugins/USBPrinting/PrinterConnection.py | 4 ++-- 1 file 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