From 0315033f8951a60e7217832f8b0c20949eb22e1a Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Sun, 7 Nov 2021 00:24:08 -0700 Subject: [PATCH] Fixed manual rig ID issue with uninitialized variable. --- rigcommander.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rigcommander.cpp b/rigcommander.cpp index 694b276..1c3ecd6 100644 --- a/rigcommander.cpp +++ b/rigcommander.cpp @@ -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);