Skip to content

Commit 0e263c1

Browse files
authored
move constant to other constants at the top
1 parent 0b69cb7 commit 0e263c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

platform.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
MKLITTLEFS_VERSION_400 = "4.0.0"
3636
DEFAULT_DEBUG_SPEED = "5000"
3737
DEFAULT_APP_OFFSET = "0x10000"
38+
ARDUINO_ESP32_PACKAGE_URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.1.x/package/package_esp32_index.template.json"
3839

3940
# MCUs that support ESP-builtin debug
4041
ESP_BUILTIN_DEBUG_MCUS = frozenset([
@@ -310,11 +311,8 @@ def _configure_arduino_framework(self, frameworks: List[str]) -> None:
310311
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
311312

312313
if is_internet_available():
313-
# Use branch release/v3.1.x
314-
url = ("https://raw.githubusercontent.com/espressif/arduino-esp32/"
315-
"release/v3.1.x/package/package_esp32_index.template.json")
316314
try:
317-
response = requests.get(url, timeout=30)
315+
response = requests.get(ARDUINO_ESP32_PACKAGE_URL, timeout=30)
318316
response.raise_for_status()
319317
packjdata = response.json()
320318
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']

0 commit comments

Comments
 (0)