Commit bafd7234 authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[driver] Fixed stream eof check (can trigger an infinite loop)

parent e606369c
......@@ -64,7 +64,7 @@ bool SeatracSerial::read_until(std::istream& is, const char* delimiter,
return true;
char c = is.get();
while(c != EOF) {
while(!is.eof()) {
os << c;
// If c matches current char of delimiter, checking next delimiter
// char. If not, the match should restart from the begin.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment