From 8c6a290d4a33a79928ed28aac7549089c299cc5a Mon Sep 17 00:00:00 2001 From: Miguel Gazquez Date: Thu, 6 Feb 2025 17:04:17 +0100 Subject: [PATCH] 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 --- scripts/west_commands/runners/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/west_commands/runners/core.py b/scripts/west_commands/runners/core.py index eb380d9403a..611848f671c 100644 --- a/scripts/west_commands/runners/core.py +++ b/scripts/west_commands/runners/core.py @@ -560,7 +560,7 @@ class ZephyrBinaryRunner(abc.ABC): parser.add_argument('-i', '--dev-id', help=argparse.SUPPRESS) if caps.flash_addr: - parser.add_argument('--dt-flash', default='n', choices=_YN_CHOICES, + parser.add_argument('--dt-flash', default=False, choices=_YN_CHOICES, action=_DTFlashAction, help='''If 'yes', try to use flash address information from devicetree when flash