495 if self.microPython.isConnected(): |
495 if self.microPython.isConnected(): |
496 self.microPython.deviceInterface().execute( |
496 self.microPython.deviceInterface().execute( |
497 [ |
497 [ |
498 "import pyb", |
498 "import pyb", |
499 "pyb.bootloader()", |
499 "pyb.bootloader()", |
500 ] |
500 ], |
|
501 mode=self._submitMode, |
501 ) |
502 ) |
502 # simulate pressing the disconnect button |
503 # simulate pressing the disconnect button |
503 self.microPython.on_connectButton_clicked() |
504 self.microPython.on_connectButton_clicked() |
504 |
505 |
505 ################################################################## |
506 ################################################################## |