summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2023-03-15 11:23:21 -0500
committerJeff Hatch <jhatch@multitech.com>2023-03-15 11:23:21 -0500
commit7c868e58e1bc930f12a60f79d30ed40f57439657 (patch)
tree6eaeece7da3f27c59b0a259abfc283fe923022ad
parent40d435b29c815597b3211e4527977a50a8bac831 (diff)
parent2e2359fd17c4d1fb7e7ef37aceccf766dd262d0b (diff)
downloadlibmts-io-7c868e58e1bc930f12a60f79d30ed40f57439657.tar.gz
libmts-io-7c868e58e1bc930f12a60f79d30ed40f57439657.tar.bz2
libmts-io-7c868e58e1bc930f12a60f79d30ed40f57439657.zip
Merge branch 'ms/fix_mts_io_build' into 'master'
Fixed use of uninitialized variable See merge request !58
-rw-r--r--src/MTS_IO_SequansRadio.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/MTS_IO_SequansRadio.cpp b/src/MTS_IO_SequansRadio.cpp
index 8133bbf..380dd80 100644
--- a/src/MTS_IO_SequansRadio.cpp
+++ b/src/MTS_IO_SequansRadio.cpp
@@ -282,7 +282,6 @@ ICellularRadio::CODE SequansRadio::getNetworkStatusTxPower(Json::Value& jData, J
std::string sResult;
std::string sPrefix;
std::vector<std::string> vParts;
- int iValue;
CODE rc;
sCmd = "AT+SQNQRUP?";
@@ -312,7 +311,7 @@ ICellularRadio::CODE SequansRadio::getNetworkStatusTxPower(Json::Value& jData, J
break; // invalid, not known or not detectable
}
if (fTxPow < -255 || fTxPow > 99) {
- printDebug("%s| Network Status command returned unexpected value of txPower: [%s][%d]", getName().c_str(), sCmd.c_str(), iValue);
+ printDebug("%s| Network Status command returned unexpected value of txPower: [%s][%f]", getName().c_str(), sCmd.c_str(), fTxPow);
break;
}
jDebug[ICellularRadio::KEY_TXPWR] = vParts[0];