524 """ |
524 """ |
525 Private slot to reset the connected device. |
525 Private slot to reset the connected device. |
526 """ |
526 """ |
527 if self.microPython.isConnected(): |
527 if self.microPython.isConnected(): |
528 self.microPython.deviceInterface().execute( |
528 self.microPython.deviceInterface().execute( |
529 [ |
529 "import machine\nmachine.reset()\n" |
530 "import machine", |
|
531 "machine.reset()", |
|
532 ] |
|
533 ) |
530 ) |
534 else: |
531 else: |
535 # perform a reset via esptool using flash_id command ignoring |
532 # perform a reset via esptool using flash_id command ignoring |
536 # the output |
533 # the output |
537 args = [ |
534 args = [ |