Changeset - 934c1d1050b2
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 9 years ago 2016-06-14 15:47:37
hy@ozderya.net
solve data parsing errors when opening pseudo terminals
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/asciireader.cpp
Show inline comments
 
@@ -88,6 +88,15 @@ void AsciiReader::onDataReady()
 

	
 
        // parse data
 
        line = line.trimmed();
 

	
 
        // Note: When data coming from pseudo terminal is buffered by
 
        // system CR is converted to LF for some reason. This causes
 
        // empty lines in the input when the port is just opened.
 
        if (line.isEmpty())
 
        {
 
            continue;
 
        }
 

	
 
        auto separatedValues = line.split(',');
 

	
 
        int numReadChannels; // effective number of channels to read
0 comments (0 inline, 0 general)