File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,15 @@ 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
- #try:
124
- #self.packages["framework-arduinoespressif32"]["version"] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-master.zip"
125
- #except:
126
- #pass
127
- # use matching espressif Arduino libs
128
- URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
123
+ try :
124
+ # use newer branch idf-master when existing
125
+ self .packages ["framework-arduinoespressif32" ]["version" ] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-master.zip"
126
+ URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/idf-master/package/package_esp32_index.template.json"
127
+ except :
128
+ # use branch release/v3.3.x
129
+ URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
129
130
packjdata = requests .get (URL ).json ()
130
131
dyn_lib_url = packjdata ['packages' ][0 ]['tools' ][0 ]['systems' ][0 ]['url' ]
131
- # use newer libs as linked in package_esp32_index.template.json is too old
132
- #dyn_lib_url = "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-master/esp32-arduino-libs-idf-master-465b159c-v1.zip"
133
132
self .packages ["framework-arduinoespressif32-libs" ]["version" ] = dyn_lib_url
134
133
135
134
if variables .get ("custom_sdkconfig" ) is not None or len (str (board_sdkconfig )) > 3 :
You can’t perform that action at this time.
0 commit comments