fix(lv_conf_internal_gen.py) formatting fixes on the generated file (#2542)

* fix(lv_conf_internal_gen.py): change lv_conf.h to lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(lv_conf_internal_gen.py): remove the extra space before macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix: regenerate lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-09-23 10:52:31 -07:00
committed by GitHub
parent 458d0353cf
commit 13b89a8434
2 changed files with 169 additions and 169 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
'''
Generates a checker file for lv_conf.h from lv_conf_template.h define all the not defined values
Generates lv_conf_internal.h from lv_conf_template.h to provide default values
'''
import sys
@@ -91,7 +91,7 @@ for i in fin.read().splitlines():
if r:
line = re.sub('\(.*?\)', '', r[1], 1) #remove parentheses from macros
dr = re.sub('.*# *define', '', i, 1)
d = "# define " + dr
d = "# define" + dr
fout.write(
f'#ifndef {line}\n'