471 """ |
471 """ |
472 Private slot to reset the connected device. |
472 Private slot to reset the connected device. |
473 """ |
473 """ |
474 if self.microPython.isConnected(): |
474 if self.microPython.isConnected(): |
475 self.microPython.deviceInterface().execute( |
475 self.microPython.deviceInterface().execute( |
476 "import machine\nmachine.reset()\n" |
476 "import machine\nmachine.reset()\n", mode=self._submitMode |
477 ) |
477 ) |
478 else: |
478 else: |
479 # perform a reset via esptool using flash_id command ignoring |
479 # perform a reset via esptool using flash_id command ignoring |
480 # the output |
480 # the output |
481 args = [ |
481 args = [ |