src/eric7/MicroPython/Devices/TeensyDevices.py

branch
mpy_network
changeset 9989
286c2a21f36f
parent 9927
fa258d559f01
child 10069
435cc5875135
equal deleted inserted replaced
9988:1ba9d07ba9da 9989:286c2a21f36f
241 @pyqtSlot() 241 @pyqtSlot()
242 def __resetDevice(self): 242 def __resetDevice(self):
243 """ 243 """
244 Private slot to reset the connected device. 244 Private slot to reset the connected device.
245 """ 245 """
246 self.microPython.deviceInterface().execute( 246 if self.microPython.isConnected():
247 "import machine\nmachine.reset()\n", mode=self._submitMode 247 self.executeCommands(
248 ) 248 "import machine\nmachine.reset()\n", mode=self._submitMode
249 )
249 250
250 ################################################################## 251 ##################################################################
251 ## time related methods below 252 ## time related methods below
252 ################################################################## 253 ##################################################################
253 254

eric ide

mercurial