fix 42156 quick connect and disconnect

This commit is contained in:
lvhan 2021-03-13 19:24:43 +08:00
parent dac607bef9
commit 9a3f6bd48f
2 changed files with 6 additions and 2 deletions

View File

@ -3033,10 +3033,10 @@ void MainWindow::on_setNetSpeed()
}
}
qDebug() << Q_FUNC_INFO << "start" << start_rcv_rates << start_tx_rates;
// qDebug() << Q_FUNC_INFO << "start" << start_rcv_rates << start_tx_rates;
long int delta_rcv = (start_rcv_rates - end_rcv_rates)/1024;
long int delta_tx = (start_tx_rates - end_tx_rates)/1024;
qDebug() << Q_FUNC_INFO << "delta" << delta_rcv << delta_tx;
// qDebug() << Q_FUNC_INFO << "delta" << delta_rcv << delta_tx;
// if (delta_rcv>=10000 || delta_rcv<0){delta_rcv = 0;}
// if (delta_tx>=10000 || delta_tx<0){delta_tx = 0;}

View File

@ -501,6 +501,10 @@ void OneConnForm::slotConnWifiPWD()
//点击后断开wifi网络
void OneConnForm::on_btnDisConn_clicked()
{
if (mw->is_stop_check_net_state == 1) {
return;
}
syslog(LOG_DEBUG, "DisConnect button about wifi net is clicked, current wifi name is %s .", wifiName.toUtf8().data());
qDebug()<<"DisConnect button about wifi net is clicked, current wifi name is "<<wifiName;