diff --git a/third_party/cyw30739_sdk/gen_ota_image.py b/third_party/cyw30739_sdk/gen_ota_image.py index 8afd4c26b684f0..2b86d9423b5bd8 100644 --- a/third_party/cyw30739_sdk/gen_ota_image.py +++ b/third_party/cyw30739_sdk/gen_ota_image.py @@ -96,7 +96,9 @@ def main(): print("Error: Insufficient space for the upgrade XS.") return -1 - return gen_image(option, ds_header, ds_data, xs_header, cx_data) + gen_image(option, ds_header, ds_data, xs_header, cx_data) + + return 0 def compress_data(option, data, file_suffix): @@ -141,7 +143,7 @@ def gen_image(option, ds_header, ds_data, xs_header, cx_data): break if header_size % 4 == 0: - return 0 + return # Insert zeroes to align sections to word inserted_zero_count = 4 - header_size % 4 @@ -149,8 +151,6 @@ def gen_image(option, ds_header, ds_data, xs_header, cx_data): cx_data, inserted_zero_count) run_ota_image_tool(option, configs) - return 0 - def parse_config(option): configs = {}