Skip to content

Commit 1745bf5

Browse files
[doc] Human-readable flash_type in chip-id files
(Closes #1155)
1 parent 1d301a5 commit 1745bf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stlink-lib/chipid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void process_chipfile(char *fname) {
8383
} else if (strcmp(word, "flash_type") == 0) {
8484
buf[strlen(buf) - 1] = 0; // chomp newline
8585
sscanf(buf, "%*s %n", &nc);
86+
// Match human readable flash_type with enum stm32_flash_type { }.
8687
if (strcmp(value, "F0_F1_F3") == 0) {
8788
ts->flash_type = STM32_FLASH_TYPE_F0_F1_F3;
8889
} else if (strcmp(value, "F1_XL") == 0) {

0 commit comments

Comments
 (0)