Skip to content

Commit 8c6a290

Browse files
miggazElquezkartben
authored andcommitted
scripts: west_commands: runners: Fix default value for --dt-flash
The '--dt-flash' parameter accepts a string like "y", "yes", "no", etc, and is supposed to be converted into a boolean value. This is only the theory as in practice, the default value is set to 'n' and is never converted to False afterwards. Set the default value to False. Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
1 parent f0d26a9 commit 8c6a290

File tree

1 file changed

+1
-1
lines changed
  • scripts/west_commands/runners

1 file changed

+1
-1
lines changed

scripts/west_commands/runners/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def add_parser(cls, parser):
560560
parser.add_argument('-i', '--dev-id', help=argparse.SUPPRESS)
561561

562562
if caps.flash_addr:
563-
parser.add_argument('--dt-flash', default='n', choices=_YN_CHOICES,
563+
parser.add_argument('--dt-flash', default=False, choices=_YN_CHOICES,
564564
action=_DTFlashAction,
565565
help='''If 'yes', try to use flash address
566566
information from devicetree when flash

0 commit comments

Comments
 (0)