Skip to content

Commit

Permalink
🔨 Fix thread-unsafe deque iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 27, 2023
1 parent 1adf76d commit c2decc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildroot/share/PlatformIO/scripts/marlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def copytree(src, dst, symlinks=False, ignore=None):
shutil.copy2(item, dst / item.name)

def replace_define(field, value):
for define in env['CPPDEFINES']:
envdefs = env['CPPDEFINES'].copy()
for define in envdefs:
if define[0] == field:
env['CPPDEFINES'].remove(define)
env['CPPDEFINES'].append((field, value))
Expand Down

0 comments on commit c2decc3

Please sign in to comment.