Changeset - ed44540644c7
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 11 years ago 2015-04-04 11:31:49
hy@ozderya.net
removed obscure debug code
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
mainwindow.cpp
Show inline comments
 
@@ -225,25 +225,24 @@ void MainWindow::selectParity(int parity
 
{
 
    if (serialPort.isOpen())
 
    {
 
        if(!serialPort.setParity((QSerialPort::Parity) parity))
 
        {
 
            qDebug() << "Set parity failed: " << serialPort.error();
 
        }
 
    }
 
}
 

	
 
void MainWindow::selectDataBits(int dataBits)
 
{
 
    qDebug() << dataBits;
 
    if (serialPort.isOpen())
 
    {
 
        if(!serialPort.setDataBits((QSerialPort::DataBits) dataBits))
 
        {
 
            qDebug() << "Set data bits failed: " << serialPort.error();
 
        }
 
    }
 
}
 

	
 
void MainWindow::onPortToggled(bool open)
 
{
 
    ui->pbOpenPort->setChecked(open);
0 comments (0 inline, 0 general)