summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdesai <sdesai@multitech.com>2023-03-27 11:53:13 -0500
committersdesai <sdesai@multitech.com>2023-03-27 11:53:13 -0500
commit582634c91a778dba7047a69b5559f849d03be112 (patch)
tree29731b473ce80217a75abb7f5d0fc2cded68422f
parent5a0bc9dda829197048155380c3e344e28365aebc (diff)
downloadlibmts-io-582634c91a778dba7047a69b5559f849d03be112.tar.gz
libmts-io-582634c91a778dba7047a69b5559f849d03be112.tar.bz2
libmts-io-582634c91a778dba7047a69b5559f849d03be112.zip
Support Portal Case #5086148: use Cellular Radio time as alternative to GPS or NTP
-rw-r--r--src/MTS_IO_CellularRadio.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp
index bc1fee1..f0df7fd 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -577,12 +577,14 @@ ICellularRadio::CODE CellularRadio::getTime(std::string& sDate, std::string& sTi
sDate = "";
sTime = "";
sTimeZone = "";
+ CODE rc;
std::vector<std::string> vTimeParts;
std::string sSign = "+";
- if (setTimeFormat() == FAILURE) {
+ rc = setTimeFormat();
+ if (rc != SUCCESS) {
printWarning("%s| Unable to set Time Parameters for radio [%s]", m_sName.c_str());
- return FAILURE;
+ return rc;
}
std::string sCmd("AT+CCLK?");