src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 11186
c2d18aefef6b
parent 11184
33a600dd86f4
child 11215
d07c71a34adf
--- a/src/eric7/MicroPython/MicroPythonWidget.py	Fri Mar 21 18:12:17 2025 +0100
+++ b/src/eric7/MicroPython/MicroPythonWidget.py	Sun Mar 23 14:55:14 2025 +0100
@@ -382,17 +382,7 @@
         @return flag indicating a micro:bit device
         @rtype bool
         """
-        if (
-            self.__device
-            and (
-                "micro:bit" in self.__device.deviceName()
-                or "Calliope" in self.__device.deviceName()
-            )
-            and not self.__device.hasCircuitPython()
-        ):
-            return True
-
-        return False
+        return self.__device and self.__device.isMicrobit()
 
     @pyqtSlot(int)
     def on_deviceTypeComboBox_activated(self, index):

eric ide

mercurial