Skip to content

Commit 1862757

Browse files
committed
builder:siwisdk: check existance of main.cpp
Check both main.c and main.cpp before creating template Signed-off-by: Ajay Bhargav <[email protected]>
1 parent e1f911e commit 1862757

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/framework/siwisdk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
# Create Project Template
2121
main_c = join(env.subst("$PROJECT_DIR"), "src", "main.c")
22-
if False == isfile(main_c):
22+
main_cpp = join(env.subst("$PROJECT_DIR"), "src", "main.cpp")
23+
if (False == isfile(main_c)) and (False == isfile(main_cpp)):
2324
copyfile(join(FRAMEWORK_DIR, "template", "main.c"), main_c)
2425

2526
def fota_crc16(data:bytearray, length):

0 commit comments

Comments
 (0)