UAVCANv1 Fix NodeClient header and Kconfig merge logic

This commit is contained in:
Peter van der Perk
2021-10-27 09:49:55 +02:00
committed by Daniel Agar
parent 0decdb1c7b
commit 51abb804ac
2 changed files with 99 additions and 1 deletions
+7 -1
View File
@@ -110,10 +110,16 @@ def main(kconfig_file, config1, config2):
for line in f:
match = unset_match(line)
#pprint.pprint(match)
#pprint.pprint(line)
if match is not None:
sym_name = match.group(1)
kconf.syms[sym_name].unset_value()
for default, cond in kconf.syms[sym_name].orig_defaults:
if(cond.str_value == 'y'):
# Default is y, our diff is unset thus we've set it to no
kconf.syms[sym_name].set_value(0)
f.close()
# Print warnings for symbols whose actual value doesn't match the assigned