mirror of
https://github.com/jankae/LibreVNA.git
synced 2025-12-06 07:12:10 +01:00
initialize missing measurements to 0
This commit is contained in:
parent
5fd77343ac
commit
f9d1b0de42
|
|
@ -356,6 +356,7 @@ void Calibration::correctMeasurement(DeviceDriver::VNAMeasurement &d)
|
|||
auto name = "S"+QString::number(pRcv)+QString::number(pSrc);
|
||||
if(d.measurements.count(name) == 0) {
|
||||
qWarning() << "Missing measurement for calibration:" << name;
|
||||
S(j,i) = 0.0;
|
||||
} else {
|
||||
// grab measurement and remove isolation here
|
||||
S(j,i) = d.measurements[name];
|
||||
|
|
|
|||
Loading…
Reference in a new issue