src/eric7/MicroPython/Devices/EspDevices.py

branch
eric7
changeset 10329
a389b06170d2
parent 10235
4a12b160094c
child 10439
21c28b0f9e41
equal deleted inserted replaced
10328:2f394eb86dd6 10329:a389b06170d2
84 "esp32_circuitpython", 84 "esp32_circuitpython",
85 "esp32", 85 "esp32",
86 hasWorkspace=False, 86 hasWorkspace=False,
87 parent=self.parent(), 87 parent=self.parent(),
88 ) 88 )
89 self.__cpyDevice.setConnected(True)
89 90
90 def setConnected(self, connected): 91 def setConnected(self, connected):
91 """ 92 """
92 Public method to set the connection state. 93 Public method to set the connection state.
93 94
375 available firmware version. 376 available firmware version.
376 """ 377 """
377 if self.hasCircuitPython(): 378 if self.hasCircuitPython():
378 self.__cpyDevice.showCircuitPythonVersions() 379 self.__cpyDevice.showCircuitPythonVersions()
379 380
380 if self.microPython.isConnected(): 381 elif self.microPython.isConnected():
381 if self._deviceData["mpy_name"] == "micropython": 382 if self._deviceData["mpy_name"] == "micropython":
382 url = QUrl(FirmwareGithubUrls["micropython"]) 383 url = QUrl(FirmwareGithubUrls["micropython"])
383 elif self._deviceData["mpy_name"] == "circuitpython": 384 elif self._deviceData["mpy_name"] == "circuitpython":
384 url = QUrl(FirmwareGithubUrls["circuitpython"]) 385 url = QUrl(FirmwareGithubUrls["circuitpython"])
385 else: 386 else:

eric ide

mercurial