Skip to content

Commit

Permalink
Update arduino.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Oct 11, 2024
1 parent ff4dff9 commit e76ac91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
board = env.BoardConfig()
mcu = board.get("build.mcu", "esp32")
flag_custom_sdkconfig = config.has_option("env:"+env["PIOENV"], "custom_sdkconfig")
flag_any_custom_sdkconfig = os.path.exists(join(FRAMEWORK_DIR,"tools","esp32-arduino-libs","sdkconfig"))
framework_reinstall = False

extra_flags = ''.join([element.replace("-D", " ") for element in board.get("build.extra_flags", "")])
Expand All @@ -59,6 +58,8 @@
elif "arduino" in env.subst("$PIOFRAMEWORK") and flag_custom_sdkconfig == True:
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")

flag_any_custom_sdkconfig = os.path.exists(join(FRAMEWORK_DIR,"tools","esp32-arduino-libs","sdkconfig"))

def get_MD5_hash(phrase):
import hashlib
return hashlib.md5((phrase).encode('utf-8')).hexdigest()[:16]
Expand Down

0 comments on commit e76ac91

Please sign in to comment.