src/eric7/MicroPython/Devices/CircuitPythonDevices.py

branch
eric7
changeset 11267
9fc085d7e4fd
parent 11263
28f0ead11a82
child 11270
0e220c26e60e
equal deleted inserted replaced
11266:97311a9616e3 11267:9fc085d7e4fd
84 self.__createCPyMenu() 84 self.__createCPyMenu()
85 85
86 self.__wiznetVidPid = ( 86 self.__wiznetVidPid = (
87 (0x2E8A, 0x1027), # WIZnet W5100S-EVB-Pico 87 (0x2E8A, 0x1027), # WIZnet W5100S-EVB-Pico
88 (0x2E8A, 0x1029), # WIZnet W5500-EVB-Pico 88 (0x2E8A, 0x1029), # WIZnet W5500-EVB-Pico
89 (0x2E8A, 0x109E), # WIZnet W5100S-EVB-Pico2
89 ) 90 )
90 91
91 self.__securityTranslations = { 92 self.__securityTranslations = {
92 "OPEN": self.tr("open", "open WiFi network"), 93 "OPEN": self.tr("open", "open WiFi network"),
93 "WEP": "WEP", 94 "WEP": "WEP",
135 super().setConnected(connected) 136 super().setConnected(connected)
136 self._deviceData["local_mip"] = False 137 self._deviceData["local_mip"] = False
137 138
138 if ( 139 if (
139 connected 140 connected
140 and not self._deviceData["ethernet"]
141 and self.__vidpid in self.__wiznetVidPid 141 and self.__vidpid in self.__wiznetVidPid
142 and (
143 "ethernet" not in self._deviceData
144 or ("ethernet" in self._deviceData and not self._deviceData["ethernet"])
145 )
142 ): 146 ):
143 with EricOverridenCursor(): 147 with EricOverridenCursor():
144 EricMessageBox.warning( 148 EricMessageBox.warning(
145 None, 149 None,
146 self.tr("WIZnet 5x00 Ethernet"), 150 self.tr("WIZnet 5x00 Ethernet"),

eric ide

mercurial