Fixed manual rig ID issue with uninitialized variable.

merge-requests/7/head
Elliott Liggett 2021-11-07 00:24:08 -07:00
rodzic 88430db9ac
commit 0315033f89
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -3964,6 +3964,10 @@ void rigCommander::setRigID(unsigned char rigID)
lookingForRig = true;
foundRig = false;
// needed because this is a fake message and thus the value is uninitialized
// this->civAddr comes from how rigCommander is setup and should be accurate.
this->incomingCIVAddr = this->civAddr;
this->model = determineRadioModel(rigID);
rigCaps.modelID = rigID;
rigCaps.model = determineRadioModel(rigID);