Skip to content

Commit 68c60f7

Browse files
authored
Merge pull request espressif#121 from brentru/fix-typerror
Fix typerror in install_platform with AVR
2 parents c9b4194 + c46fa0f commit 68c60f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: build_platform.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ def install_platform(fqbn, platform_name=None):
217217
print("Installing", fqbn, end=" ")
218218
if fqbn == "adafruit:avr": # we have a platform dep
219219
install_platform("arduino:avr")
220-
if "daily" in platform_name: # manually install ESP32 BSP from latest source
221-
manually_install_esp32_bsp()
220+
if platform_name is not None:
221+
if "daily" in platform_name: # manually install ESP32 BSP from latest source
222+
manually_install_esp32_bsp()
222223
if os.system("arduino-cli core install "+fqbn+" --additional-urls "+BSP_URLS+" > /dev/null") != 0:
223224
ColorPrint.print_fail("FAILED to install "+fqbn)
224225
exit(-1)

0 commit comments

Comments
 (0)