mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Merge branch 'lvgl-v8' of http://github.com/fvanroie/hasp-lvgl into lvgl-v8
This commit is contained in:
commit
4301553653
@ -68,10 +68,11 @@ for (item, data) in fonts.items():
|
|||||||
|
|
||||||
contents[13] = contents[13].replace(" 1", " 0 // default to off")
|
contents[13] = contents[13].replace(" 1", " 0 // default to off")
|
||||||
contents.insert(0, "/* clang-format off */\n") # Add c-lang directive
|
contents.insert(0, "/* clang-format off */\n") # Add c-lang directive
|
||||||
|
|
||||||
for line in contents:
|
for idx,line in enumerate(contents):
|
||||||
if (line =="#if LV_VERSION_CHECK(7, 4, 0)"):
|
if "#if LV_VERSION_CHECK(7, 4, 0)" in line:
|
||||||
line = "#if LV_VERSION_CHECK(7, 4, 0) || LV_VERSION_CHECK(8, 0, 0)"
|
contents[idx] = "#if LV_VERSION_CHECK(7, 4, 0) || LV_VERSION_CHECK(8, 0, 0)\r"
|
||||||
|
print(line)
|
||||||
|
|
||||||
with open(output, "w", encoding="utf8") as f:
|
with open(output, "w", encoding="utf8") as f:
|
||||||
contents = "".join(contents)
|
contents = "".join(contents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user