--- a/eric6/MicroPython/EspDevices.py Sun Jul 28 18:55:00 2019 +0200 +++ b/eric6/MicroPython/EspDevices.py Mon Jul 29 20:20:18 2019 +0200 @@ -61,13 +61,7 @@ and a reason why it cannot. @rtype tuple of (bool, str) """ - if self.__fileManagerActive: - return False, self.tr("The REPL and the file manager use the same" - " USB serial connection. Only one can be" - " active at any time. Toggle the file" - " manager off and try again.") - else: - return True, "" + return True, "" def setRepl(self, on): """ @@ -77,8 +71,6 @@ @type bool """ self.__replActive = on - self.microPython.setActionButtons( - files=not (on or self.__plotterActive)) def canStartPlotter(self): """ @@ -88,13 +80,7 @@ Plotter and a reason why it cannot. @rtype tuple of (bool, str) """ - if self.__fileManagerActive: - return False, self.tr("The Plotter and the file manager use the" - " same USB serial connection. Only one can" - " be active at any time. Toggle the file" - " manager off and try again.") - else: - return True, "" + return True, "" def setPlotter(self, on): """ @@ -104,8 +90,6 @@ @type bool """ self.__plotterActive = on - self.microPython.setActionButtons( - files=not (on or self.__replActive)) def canRunScript(self): """ @@ -135,13 +119,7 @@ File Manager and a reason why it cannot. @rtype tuple of (bool, str) """ - if self.__replActive or self.__plotterActive: - return False, self.tr("The file manager and the REPL/plotter use" - " the same USB serial connection. Only one" - " can be active at any time. Disconnect the" - " REPL/plotter and try again.") - else: - return True, "" + return True, "" def setFileManager(self, on): """ @@ -151,12 +129,10 @@ @type bool """ self.__fileManagerActive = on - self.microPython.setActionButtons( - run=not on, repl=not on, chart=HAS_QTCHART and not on) @pyqtSlot() def handleDataFlood(self): """ - Public slot handling a data floof from the device. + Public slot handling a data flood from the device. """ self.microPython.setActionButtons(files=True)