File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -120,18 +120,21 @@ 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
- # use newer branch idf-release/v5.4 when existing
124
- self .packages ["framework-arduinoespressif32" ]["version" ] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-release/v5.4.zip"
123
+
125
124
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/idf-release/v5.4/package/package_esp32_index.template.json"
126
125
req = requests .get (URL )
127
126
if req .status_code == 200 :
128
127
packjdata = req .json ()
128
+ self .packages ["framework-arduinoespressif32" ]["version" ] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-release/v5.4.zip"
129
+ dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
130
+ self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
129
131
else :
130
132
# use branch master
131
133
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
134
+ req = requests .get (URL )
132
135
packjdata = requests .get (URL ).json ()
133
- dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
134
- self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
136
+ dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
137
+ self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
135
138
136
139
if variables .get ("custom_sdkconfig" ) is not None or len (str (board_sdkconfig )) > 3 :
137
140
frameworks .append ("espidf" )
You can’t perform that action at this time.
0 commit comments