518 Private slot to reset the connected device. |
518 Private slot to reset the connected device. |
519 """ |
519 """ |
520 if self.getDeviceType() == "bbc_microbit": |
520 if self.getDeviceType() == "bbc_microbit": |
521 # BBC micro:bit |
521 # BBC micro:bit |
522 self.microPython.deviceInterface().execute( |
522 self.microPython.deviceInterface().execute( |
523 "import microbit\nmicrobit.reset()\n" |
523 "import microbit\nmicrobit.reset()\n", mode=self._submitMode |
524 ) |
524 ) |
525 else: |
525 else: |
526 # Calliope mini |
526 # Calliope mini |
527 self.microPython.deviceInterface().execute( |
527 self.microPython.deviceInterface().execute( |
528 "import calliope_mini\ncalliope_mini.reset()\n" |
528 "import calliope_mini\ncalliope_mini.reset()\n", mode=self._submitMode |
529 ) |
529 ) |
530 |
530 |
531 def getDocumentationUrl(self): |
531 def getDocumentationUrl(self): |
532 """ |
532 """ |
533 Public method to get the device documentation URL. |
533 Public method to get the device documentation URL. |