Skip to content

Commit 9612d2a

Browse files
authored
Update arduino.py
1 parent fbc1426 commit 9612d2a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

builder/frameworks/arduino.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from platformio.project.config import ProjectConfig
3838
from platformio.package.manager.tool import ToolPackageManager
3939

40-
# Globale Variablen für bessere Performance
40+
# Global variables for better performance
4141
env = DefaultEnvironment()
4242
pm = ToolPackageManager()
4343
platform = env.PioPlatform()
@@ -48,11 +48,11 @@
4848
IS_WINDOWS = sys.platform.startswith("win")
4949
IS_INTEGRATION_DUMP = env.IsIntegrationDump()
5050

51-
# Cache für häufig verwendete Werte
51+
# Cache for frequently used values
5252
FRAMEWORK_LIB_DIR = platform.get_package_dir("framework-arduinoespressif32-libs")
5353
FRAMEWORK_SDK_DIR = fs.to_unix_path(join(FRAMEWORK_LIB_DIR, mcu, "include"))
5454

55-
# Optimierte Konfigurationserkennung
55+
# Optimized configuration detection
5656
entry_custom_sdkconfig = "\n"
5757
flag_custom_sdkconfig = False
5858
pioenv = env["PIOENV"]
@@ -73,7 +73,7 @@
7373

7474
SConscript("_embed_files.py", exports="env")
7575

76-
# Optimierte ESP32-Solo1 Konfiguration
76+
# Optimized ESP32-Solo1 configuration
7777
if (flag_custom_sdkconfig and
7878
("CORE32SOLO1" in extra_flags or
7979
"CONFIG_FREERTOS_UNICORE=y" in entry_custom_sdkconfig or
@@ -86,7 +86,7 @@
8686
build_unflags += " -mdisable-hardware-atomics -ustart_app_other_cores"
8787
env.Replace(BUILD_UNFLAGS=build_unflags.split())
8888

89-
# Cache für installierte Pakete
89+
# Cache for installed packages
9090
_installed_packages_cache = None
9191

9292
def install_python_deps():
@@ -140,11 +140,11 @@ def _get_installed_pip_packages():
140140

141141
install_python_deps()
142142

143-
# Optimierte MD5-Hash-Funktion
143+
# Optimized MD5 hash function
144144
def get_MD5_hash(phrase):
145145
return hashlib.md5(phrase.encode('utf-8')).hexdigest()[:16]
146146

147-
# Cache für sdkconfig-Matching
147+
# Cache for sdkconfig matching
148148
_sdkconfig_cache = {}
149149

150150
def matching_custom_sdkconfig():
@@ -202,7 +202,7 @@ def check_reinstall_frwrk():
202202

203203
return False
204204

205-
# Optimierte Include-Pfad-Verkürzung
205+
# Optimized include path shortening
206206
def shorthen_includes(env, node):
207207
if IS_INTEGRATION_DUMP:
208208
return node
@@ -235,7 +235,7 @@ def is_framework_subfolder(potential_subfolder):
235235
return (os.path.commonpath([FRAMEWORK_SDK_DIR]) ==
236236
os.path.commonpath([FRAMEWORK_SDK_DIR, potential_subfolder]))
237237

238-
# Cache für Framework-Erkennung
238+
# Cache for framework detection
239239
_current_env_frameworks = None
240240

241241
def get_frameworks_in_current_env():
@@ -266,7 +266,7 @@ def call_compile_libs():
266266
print(f"*** Compile Arduino IDF libs for {pioenv} ***")
267267
SConscript("espidf.py")
268268

269-
# Hauptlogik für Framework-Neuinstallation
269+
# Main logic for framework reinstallation
270270
if check_reinstall_frwrk():
271271
envs = [section.replace("env:", "") for section in config.sections()
272272
if section.startswith("env:")]
@@ -279,7 +279,7 @@ def call_compile_libs():
279279

280280
print("*** Reinstall Arduino framework ***")
281281

282-
# Parallele Löschung vorbereiten
282+
# Prepare parallel deletion
283283
dirs_to_remove = [
284284
platform.get_package_dir("framework-arduinoespressif32"),
285285
platform.get_package_dir("framework-arduinoespressif32-libs")
@@ -289,7 +289,7 @@ def call_compile_libs():
289289
if exists(dir_path):
290290
shutil.rmtree(dir_path)
291291

292-
# URLs extrahieren und installieren
292+
# Extract URLs and install
293293
arduino_frmwrk_url = str(platform.get_package_spec("framework-arduinoespressif32")).split("uri=", 1)[1][:-1]
294294
arduino_frmwrk_lib_url = str(platform.get_package_spec("framework-arduinoespressif32-libs")).split("uri=", 1)[1][:-1]
295295

@@ -303,7 +303,7 @@ def call_compile_libs():
303303
if flag_custom_sdkconfig and not flag_any_custom_sdkconfig:
304304
call_compile_libs()
305305

306-
# Finale Ausführung
306+
# Final execution
307307
pioframework = env.subst("$PIOFRAMEWORK")
308308
arduino_lib_compile_flag = env.subst("$ARDUINO_LIB_COMPILE_FLAG")
309309

0 commit comments

Comments
 (0)