eric6/MicroPython/MicroPythonWidget.py

changeset 8038
73ec029d4107
parent 8024
e0eb1d5922a5
child 8051
b78279548993
--- a/eric6/MicroPython/MicroPythonWidget.py	Sun Jan 31 17:47:01 2021 +0100
+++ b/eric6/MicroPython/MicroPythonWidget.py	Sun Jan 31 17:47:55 2021 +0100
@@ -388,12 +388,15 @@
     def isMicrobit(self):
         """
         Public method to check, if the connected/selected device is a
-        BBC micro:bit.
+        BBC micro:bit or Calliope mini.
         
         @return flag indicating a micro:bit device
         rtype bool
         """
-        if self.__device and "micro:bit" in self.__device.deviceName():
+        if self.__device and (
+            "micro:bit" in self.__device.deviceName() or
+            "Calliope" in self.__device.deviceName()
+        ):
             return True
         
         return False
@@ -1539,8 +1542,7 @@
             # abort silently
             return
         
-        url = self.__device.getFirmwareUrl()
-        e5App().getObject("UserInterface").launchHelpViewer(url)
+        self.__device.downloadFirmware()
     
     @pyqtSlot()
     def __manageIgnored(self):

eric ide

mercurial