@@ -120,21 +120,11 @@ def install_tool(TOOL, retry_count=0):
120
120
if "arduino" in frameworks :
121
121
self .packages ["framework-arduinoespressif32" ]["optional" ] = False
122
122
self .packages ["framework-arduinoespressif32-libs" ]["optional" ] = False
123
-
124
- # use newer branch idf-master when existing
125
- URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/idf-master/package/package_esp32_index.template.json"
126
- req = requests .get (URL )
127
- if req .status_code == 200 :
128
- packjdata = req .json ()
129
- self .packages ["framework-arduinoespressif32" ]["version" ] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-master.zip"
130
- dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
131
- self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
132
- else :
133
- # use branch release/v3.3.x
134
- URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
135
- packjdata = requests .get (URL ).json ()
136
- dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
137
- self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
123
+ # use branch release/v3.3.x
124
+ URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
125
+ packjdata = requests .get (URL ).json ()
126
+ dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
127
+ self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
138
128
139
129
if variables .get ("custom_sdkconfig" ) is not None or len (str (board_sdkconfig )) > 3 :
140
130
frameworks .append ("espidf" )
0 commit comments