eric6/MicroPython/MicroPythonDevices.py

branch
micropython
changeset 7065
e3d04faced34
parent 7061
9db5a73217bb
child 7068
e3200e4dfa63
--- a/eric6/MicroPython/MicroPythonDevices.py	Thu Jul 11 19:48:14 2019 +0200
+++ b/eric6/MicroPython/MicroPythonDevices.py	Tue Jul 16 20:12:53 2019 +0200
@@ -13,7 +13,7 @@
 import logging
 import os
 
-from PyQt5.QtCore import QObject
+from PyQt5.QtCore import pyqtSlot, QObject
 
 import UI.PixmapCache
 import Preferences
@@ -284,10 +284,17 @@
             b'\r\x03\x03',  # Ctrl-C twice: interrupt any running program
             b'\r\x01',      # Ctrl-A: enter raw REPL
         ]
-        newLine = [b'print("\\n")\r',]
+        newLine = [b'print("\\n")\r', ]
         commands = [c.encode("utf-8)") + b'\r' for c in commandsList]
         commands.append(b'\r')
         commands.append(b'\x04')
         rawOff = [b'\x02']
         commandSequence = rawOn + newLine + commands + rawOff
         self.microPython.execute(commandSequence)
+    
+    @pyqtSlot()
+    def handleDataFlood(self):
+        """
+        Public slot handling a data floof from the device.
+        """
+        pass

eric ide

mercurial