Skip to content

Commit 9787bee

Browse files
committed
LP-551 Update input page if user disconnect board while calibrating and TxWizard
1 parent c671327 commit 9787bee

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

ground/gcs/src/plugins/config/configinputwidget.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,16 @@ void ConfigInputWidget::enableControls(bool enable)
497497
} else {
498498
// Hide configAlarmStatus when disconnected
499499
ui->configAlarmStatus->setVisible(false);
500+
if (wizardStep != wizardNone) {
501+
// Close input wizard
502+
wzCancel();
503+
}
504+
if (ui->runCalibration->isChecked()) {
505+
// Close manual calibration
506+
ui->runCalibration->setChecked(false);
507+
ui->runCalibration->setText(tr("Start Manual Calibration"));
508+
emit inputCalibrationStatus(false);
509+
}
500510
}
501511
}
502512

@@ -1931,6 +1941,10 @@ void ConfigInputWidget::updateCalibration()
19311941

19321942
void ConfigInputWidget::simpleCalibration(bool enable)
19331943
{
1944+
if (!isConnected()) {
1945+
return;
1946+
}
1947+
19341948
if (!safeOutputConfig) {
19351949
if (enable) {
19361950
QMessageBox::warning(this, tr("Warning"), tr("There is something wrong in <b>Output tab</b>."

0 commit comments

Comments
 (0)