Skip to content

Commit

Permalink
[doc] Human-readable flash_type in chip-id files
Browse files Browse the repository at this point in the history
(Closes #1155)
  • Loading branch information
Nightwalker-87 committed Apr 8, 2023
1 parent 1d301a5 commit 1745bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stlink-lib/chipid.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void process_chipfile(char *fname) {
} else if (strcmp(word, "flash_type") == 0) {
buf[strlen(buf) - 1] = 0; // chomp newline
sscanf(buf, "%*s %n", &nc);
// Match human readable flash_type with enum stm32_flash_type { }.
if (strcmp(value, "F0_F1_F3") == 0) {
ts->flash_type = STM32_FLASH_TYPE_F0_F1_F3;
} else if (strcmp(value, "F1_XL") == 0) {
Expand Down

0 comments on commit 1745bf5

Please sign in to comment.