|
@@ -20,10 +20,10 @@ def add_cpu_freq():
|
20
|
20
|
|
21
|
21
|
# Useful for JTAG debugging
|
22
|
22
|
#
|
23
|
|
-# It will separe release and debug build folders.
|
24
|
|
-# It useful when we need keep two live versions: one debug, for debugging,
|
25
|
|
-# other release, for flashing (when upload is not done automatically by jlink/stlink).
|
26
|
|
-# Without this, PIO will recompile everything twice for any small change.
|
|
23
|
+# It will separate release and debug build folders.
|
|
24
|
+# It useful to keep two live versions: a debug version for debugging and another for
|
|
25
|
+# release, for flashing when upload is not done automatically by jlink/stlink.
|
|
26
|
+# Without this, PIO needs to recompile everything twice for any small change.
|
27
|
27
|
if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']:
|
28
|
28
|
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
|
29
|
29
|
|