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 #1833.
Set default value for the align parameter.

Signed-off-by: Andrej Butok <[email protected]>
  • Loading branch information
butok authored and d3zd3z committed Feb 7, 2024
1 parent 79c284b commit 06bc548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/imgtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def convert(self, value, param, ctx):
'keyword to automatically generate it from the image version.')
@click.option('-v', '--version', callback=validate_version, required=True)
@click.option('--align', type=click.Choice(['1', '2', '4', '8', '16', '32']),
default='1',
required=False,
help='Alignment used by swap update modes.')
@click.option('--max-align', type=click.Choice(['8', '16', '32']),
Expand Down

0 comments on commit 06bc548

Please sign in to comment.