src/eric7/MicroPython/Devices/EspDevices.py

branch
eric7
changeset 9766
f0e22f3a5878
parent 9765
6378da868bb0
child 9795
11b4d39d7584
equal deleted inserted replaced
9765:6378da868bb0 9766:f0e22f3a5878
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 = [

eric ide

mercurial