src/eric7/MicroPython/Devices/CircuitPythonDevices.py

branch
eric7
changeset 11208
f776db7cc222
parent 11174
ab097070aedf
child 11236
75c26fe1d1c7
diff -r 7193db06924d -r f776db7cc222 src/eric7/MicroPython/Devices/CircuitPythonDevices.py
--- a/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Sun Apr 06 11:01:28 2025 +0200
+++ b/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Sun Apr 06 14:51:33 2025 +0200
@@ -492,7 +492,7 @@
         """
         from ..UF2FlashDialog import UF2FlashDialog
 
-        dlg = UF2FlashDialog(boardType="circuitpython", parent=self.microPython)
+        dlg = UF2FlashDialog(boardType="UF2 Board + RP2", parent=self.microPython)
         dlg.exec()
 
     @pyqtSlot()
@@ -507,6 +507,8 @@
                 "mc.reset()\n",
                 mode=self._submitMode,
             )
+            # simulate pressing the disconnect button
+            self.microPython.on_connectButton_clicked()
 
     @pyqtSlot()
     def __activateUF2Boot(self):
@@ -520,6 +522,8 @@
                 "mc.reset()\n",
                 mode=self._submitMode,
             )
+            # simulate pressing the disconnect button
+            self.microPython.on_connectButton_clicked()
 
     @pyqtSlot()
     def __showTeensyFlashInstructions(self):

eric ide

mercurial