summaryrefslogtreecommitdiff
path: root/board/toradex/common/tdx-cfg-block.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/toradex/common/tdx-cfg-block.c')
-rw-r--r--board/toradex/common/tdx-cfg-block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index 4e3c6e6b06..4bf2564988 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -482,10 +482,10 @@ static int get_cfgblock_interactive(void)
return -1;
}
- while (len < 4) {
+ do {
sprintf(message, "Enter the module version (e.g. V1.1B): V");
len = cli_readline(message);
- }
+ } while (len < 4);
tdx_hw_tag.ver_major = console_buffer[0] - '0';
tdx_hw_tag.ver_minor = console_buffer[2] - '0';