Skip to content

Commit

Permalink
imgtool: fix "align" script error
Browse files Browse the repository at this point in the history
Fix "align" possible script error, caused by mcu-tools#1833

Signed-off-by: Andrej Butok <[email protected]>
  • Loading branch information
butok committed Dec 19, 2023
1 parent 12e2b63 commit 69981d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/imgtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def sign(key, public_key_format, align, version, pad_sig, header_size,
pad = True
img = image.Image(version=decode_version(version), header_size=header_size,
pad_header=pad_header, pad=pad, confirm=confirm,
align=int(align), slot_size=slot_size,
align = int(align) if align else 1, slot_size=slot_size,
max_sectors=max_sectors, overwrite_only=overwrite_only,
endian=endian, load_addr=load_addr, rom_fixed=rom_fixed,
erased_val=erased_val, save_enctlv=save_enctlv,
Expand Down

0 comments on commit 69981d9

Please sign in to comment.