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