workflow update + minor bugs/warnings fixes

This commit is contained in:
Jan Käberich 2024-11-03 13:36:54 +01:00
parent 69b2fac95f
commit 67a186be4f
5 changed files with 23 additions and 23 deletions

View file

@ -243,7 +243,7 @@ void CalDevice::loadCoefficientSetsThreadSlow(QStringList names, QList<int> port
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+"_SHORT").toInt();
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+"_LOAD").toInt();
for(int jdx=idx+1;jdx<numPorts;jdx++) {
int j = ports[j];
int j = ports[jdx];
totalPoints += usb->Query(":COEFF:NUM? "+name+" P"+QString::number(i)+QString::number(j)+"_THROUGH").toInt();
}
}

View file

@ -126,7 +126,7 @@ void CompoundDeviceEditDialog::checkIfOkay()
// Check port mapping
// Looking for duplicate and missing ports
bool highestPortFound = false;
unsigned int highestPort;
unsigned int highestPort = 0;
for(unsigned int port=0;port<2*ldev.deviceSerials.size();port++) {
int num = 0;
for(unsigned int i=0;i<deviceFrames.size();i++) {

View file

@ -646,7 +646,7 @@ VNA::VNA(AppWindow *window, QString name)
Calibration::InterpolationType VNA::getCalInterpolation()
{
double f_min, f_max;
double f_min = 0, f_max = 0;
switch(settings.sweepType) {
case SweepType::Last:
// should never get here, use frequency values just in case
@ -976,7 +976,7 @@ void VNA::NewDatapoint(DeviceDriver::VNAMeasurement m)
window->addStreamingData(m_avg, AppWindow::VNADataType::Calibrated);
}
TraceMath::DataType type;
TraceMath::DataType type = TraceMath::DataType::Frequency;
if(settings.zerospan) {
type = TraceMath::DataType::TimeZeroSpan;