Changeset - 73abbe942246
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 11 years ago 2015-03-16 18:27:43
hy@ozderya.net
discard all received data when paused
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
mainwindow.cpp
Show inline comments
 
@@ -227,12 +227,16 @@ void MainWindow::onDataReady()
 
                samples.replace(i, (this->*readSample)());
 
                i++;
 
            }
 
            addData(samples);
 
        }
 
    }
 
    else
 
    {
 
        serialPort.clear(QSerialPort::Input);
 
    }
 
}
 

	
 
void MainWindow::onPortError(QSerialPort::SerialPortError error)
 
{
 
    switch(error)
 
    {
0 comments (0 inline, 0 general)