Skip to content

Commit 087bd8e

Browse files
committed
re-compute calibration when a measurement is updated
1 parent b26dc41 commit 087bd8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Software/PC_Application/LibreVNA-GUI/Calibration/calibration.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,15 @@ void Calibration::edit()
620620
connect(this, &Calibration::measurementsUpdated, d, [=](){
621621
updateMeasurementTable();
622622
updateCalibrationList();
623+
if(caltype.type != Type::None) {
624+
// update the calibration with the new measurement
625+
if(canCompute(caltype)) {
626+
compute(caltype);
627+
} else {
628+
// can not keep the calibration, disabled
629+
deactivate();
630+
}
631+
}
623632
});
624633

625634
connect(ui->clearMeasurement, &QPushButton::clicked, [=](){

0 commit comments

Comments
 (0)