🔨 PlatformIO 6 compatibility

This commit is contained in:
Scott Lahteine
2023-07-18 18:17:09 -05:00
parent 5b7b065b96
commit a5051f73bd
14 changed files with 271 additions and 276 deletions

View File

@@ -17,7 +17,8 @@ def copytree(src, dst, symlinks=False, ignore=None):
shutil.copy2(s, d)
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))