Merge pull request #938 from riscv/stm32lx

flash/stm32lx: Revert to upstream version.
This commit is contained in:
Tim Newsome 2023-10-18 09:23:04 -07:00 committed by GitHub
commit 0f8f1d1b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -890,10 +890,11 @@ static int stm32lx_get_info(struct flash_bank *bank, struct command_invocation *
if (rev_id == info->revs[i].rev)
rev_str = info->revs[i].str;
if (rev_str)
if (rev_str) {
command_print_sameline(cmd, "%s - Rev: %s", info->device_str, rev_str);
else
} else {
command_print_sameline(cmd, "%s - Rev: unknown (0x%04x)", info->device_str, rev_id);
}
return ERROR_OK;
}