--- a/src/eric7/MicroPython/MicroPythonSerialDeviceInterface.py Thu Oct 05 17:07:35 2023 +0200 +++ b/src/eric7/MicroPython/MicroPythonSerialDeviceInterface.py Fri Oct 06 15:52:33 2023 +0200 @@ -48,15 +48,14 @@ data = bytes(self.__serial.readAll()) self.dataReceived.emit(data) - @pyqtSlot() def connectToDevice(self, connection): """ - Public slot to connect to the device. + Public method to connect to the device. @param connection name of the connection to be used @type str - @return flag indicating success - @rtype bool + @return flag indicating success and an error message + @rtype tuple of (bool, str) """ return self.__serial.openSerialLink(connection)