Make sure to initialize the structs
This commit is contained in:
parent
69b90b243a
commit
db74c22890
@ -3391,7 +3391,7 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityDetail d;
|
ActivityDetail d = {};
|
||||||
d.isLowConfidence = decodedtext.isLowConfidence();
|
d.isLowConfidence = decodedtext.isLowConfidence();
|
||||||
d.isFree = !decodedtext.isStandardMessage();
|
d.isFree = !decodedtext.isStandardMessage();
|
||||||
d.isCompound = decodedtext.isCompound();
|
d.isCompound = decodedtext.isCompound();
|
||||||
@ -3431,7 +3431,7 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
qDebug() << "decoded" << decodedtext.frameType() << decodedtext.isCompound() << decodedtext.isDirectedMessage() << decodedtext.isBeacon();
|
qDebug() << "decoded" << decodedtext.frameType() << decodedtext.isCompound() << decodedtext.isDirectedMessage() << decodedtext.isBeacon();
|
||||||
bool shouldProcessCompound = true;
|
bool shouldProcessCompound = true;
|
||||||
if(shouldProcessCompound && decodedtext.isCompound() && !decodedtext.isDirectedMessage()){
|
if(shouldProcessCompound && decodedtext.isCompound() && !decodedtext.isDirectedMessage()){
|
||||||
CallDetail cd;
|
CallDetail cd = {};
|
||||||
cd.call = decodedtext.compoundCall();
|
cd.call = decodedtext.compoundCall();
|
||||||
cd.grid = decodedtext.extra(); // compound calls via beacons may contain grid...
|
cd.grid = decodedtext.extra(); // compound calls via beacons may contain grid...
|
||||||
cd.snr = decodedtext.snr();
|
cd.snr = decodedtext.snr();
|
||||||
@ -3455,7 +3455,7 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
if(shouldProcessDirected && decodedtext.isDirectedMessage()){
|
if(shouldProcessDirected && decodedtext.isDirectedMessage()){
|
||||||
auto parts = decodedtext.directedMessage();
|
auto parts = decodedtext.directedMessage();
|
||||||
|
|
||||||
CommandDetail d;
|
CommandDetail d = {};
|
||||||
d.from = parts.at(0);
|
d.from = parts.at(0);
|
||||||
d.to = parts.at(1);
|
d.to = parts.at(1);
|
||||||
d.cmd = parts.at(2);
|
d.cmd = parts.at(2);
|
||||||
@ -3520,7 +3520,7 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
if(!calls.isEmpty() && !calls.first().isEmpty()){
|
if(!calls.isEmpty() && !calls.first().isEmpty()){
|
||||||
theircall = calls.first();
|
theircall = calls.first();
|
||||||
|
|
||||||
CallDetail d;
|
CallDetail d = {};
|
||||||
d.bits = decodedtext.bits();
|
d.bits = decodedtext.bits();
|
||||||
d.call = theircall;
|
d.call = theircall;
|
||||||
d.grid = theirgrid;
|
d.grid = theirgrid;
|
||||||
@ -8734,7 +8734,7 @@ void MainWindow::processCommandActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// log call activity...
|
// log call activity...
|
||||||
CallDetail cd;
|
CallDetail cd = {};
|
||||||
cd.call = d.from;
|
cd.call = d.from;
|
||||||
cd.grid = d.grid;
|
cd.grid = d.grid;
|
||||||
cd.snr = d.snr;
|
cd.snr = d.snr;
|
||||||
@ -8760,7 +8760,7 @@ void MainWindow::processCommandActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// display the command activity
|
// display the command activity
|
||||||
ActivityDetail ad;
|
ActivityDetail ad = {};
|
||||||
ad.isLowConfidence = false;
|
ad.isLowConfidence = false;
|
||||||
ad.isFree = true;
|
ad.isFree = true;
|
||||||
ad.isDirected = true;
|
ad.isDirected = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user