mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 09:59:03 +02:00
svf_jtag: suppress CR when file is in DOS format
This commit is contained in:
@@ -260,6 +260,10 @@ void SVF_jtag::parse(string filename)
|
||||
}
|
||||
|
||||
while (getline(fs, str)) {
|
||||
/* sanity check: DOS CR */
|
||||
if (str.back() == '\r')
|
||||
str.pop_back();
|
||||
|
||||
is_complete = false;
|
||||
if (str[0] == '!') // comment
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user