Changeset View
Changeset View
Standalone View
Standalone View
testclient/mainwindow.cpp
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | 297 | if (ui->pluginCB->currentText().contains(tr("Autodetect"))) { | |||
---|---|---|---|---|---|
298 | addLog(tr("No plugin loaded !")); | 298 | addLog(tr("No plugin loaded !")); | ||
299 | addLog(tr("Requesting Firmware...")); | 299 | addLog(tr("Requesting Firmware...")); | ||
300 | core->detectFirmware(); | 300 | core->detectFirmware(); | ||
301 | } else { | 301 | } else { | ||
302 | core->loadFirmwarePlugin(ui->pluginCB->currentText()); | 302 | core->loadFirmwarePlugin(ui->pluginCB->currentText()); | ||
303 | } | 303 | } | ||
304 | } | 304 | } | ||
305 | } else { | 305 | } else { | ||
306 | disconnect(core, &AtCore::receivedMessage, this, &MainWindow::checkReceivedCommand); | ||||
307 | disconnect(core->serial(), &SerialLayer::pushedCommand, this, &MainWindow::checkPushedCommands); | ||||
306 | core->closeConnection(); | 308 | core->closeConnection(); | ||
307 | core->setState(AtCore::DISCONNECTED); | 309 | core->setState(AtCore::DISCONNECTED); | ||
308 | addLog(tr("Disconnected")); | 310 | addLog(tr("Disconnected")); | ||
309 | ui->connectPB->setText(tr("Connect")); | 311 | ui->connectPB->setText(tr("Connect")); | ||
310 | } | 312 | } | ||
311 | } | 313 | } | ||
312 | 314 | | |||
313 | void MainWindow::sendPBClicked() | 315 | void MainWindow::sendPBClicked() | ||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |