kopia lustrzana https://github.com/stlink-org/stlink
adding additional check if .chip files contain empty lines
rodzic
a99a626e69
commit
3b328b26bd
|
@ -60,6 +60,10 @@ void process_chipfile(char *fname) {
|
|||
if (strncmp(buf, "#", strlen("#")) == 0)
|
||||
continue; // ignore comments
|
||||
|
||||
if ((strncmp(buf, "\n", strlen("\n")) == 0) ||
|
||||
(strncmp(buf, " ", strlen(" ")) == 0))
|
||||
continue; // ignore empty lines
|
||||
|
||||
sscanf(buf, "%s %s", word, value);
|
||||
|
||||
if (strcmp (word, "dev_type") == 0) {
|
||||
|
|
Ładowanie…
Reference in New Issue