Skip to content

Commit

Permalink
MockOscilloscope: don't treat lines containing a minus sign as header…
Browse files Browse the repository at this point in the history
… rows. Fixes #424.
  • Loading branch information
azonenberg committed Apr 24, 2021
1 parent b94cc54 commit 04bb711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scopehal/MockOscilloscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ bool MockOscilloscope::LoadCSV(const string& path)
bool numeric = true;
for(size_t i=0; (i<sizeof(line)) && (line[i] != '\0'); i++)
{
if(!isdigit(line[i]) && !isspace(line[i]) && (line[i] != ',') && (line[i] != '.') )
if(!isdigit(line[i]) && !isspace(line[i]) && (line[i] != ',') && (line[i] != '.') && (line[i] != '-') )
{
numeric = false;
break;
Expand Down

0 comments on commit 04bb711

Please sign in to comment.