I was renaming the build binary in .ini and it seems when ever I compile, the build binary doesn’t get overwrite by the new binary (seems like the firmware doesn’t even attempt to build from scratch ) .Is this how pio suppose to work or is there way to overwrite the existing binary which has the same name?
or do we need to run pio run -t clean before compiling ?
my_flags = env.ParseFlags(env[‘BUILD_FLAGS’])
for x in my_flags.get(“CPPDEFINES”):
# some flags are just defines without value instead of key, value pair
if isinstance(x, list):
# grab as key, value
k, v = x
if k == “VERSION”:
firmware_ver = v
# no need to iterate further
break