summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdesai <sdesai@multitech.com>2023-03-20 15:19:05 -0500
committersdesai <sdesai@multitech.com>2023-03-20 15:19:05 -0500
commit96a6958ec2242d1ff7bc0afa83e25044e61800e1 (patch)
tree947fae3469316b9c83548185b94978ab5e47a35e
parent8fce7442bbc63b744905f9febc21aad9cf5074fd (diff)
downloadlibmts-io-96a6958ec2242d1ff7bc0afa83e25044e61800e1.tar.gz
libmts-io-96a6958ec2242d1ff7bc0afa83e25044e61800e1.tar.bz2
libmts-io-96a6958ec2242d1ff7bc0afa83e25044e61800e1.zip
Support Portal Case #5086148: use Cellular Radio timeas alternative to GPS or NTP
-rw-r--r--src/MTS_IO_QuectelRadio.cpp4
-rw-r--r--src/MTS_IO_SequansRadio.cpp4
-rw-r--r--src/MTS_IO_TelitRadio.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp
index 760cf6d..2bc4fb6 100644
--- a/src/MTS_IO_QuectelRadio.cpp
+++ b/src/MTS_IO_QuectelRadio.cpp
@@ -1684,7 +1684,7 @@ ICellularRadio::CODE QuectelRadio::setTimeFormat(void) {
rc = sendBasicCommand(sCmdCSDF);
if (rc != SUCCESS) {
- printError("%s| Failed to set diversity for WCDMA network mode: [%d]", getName().c_str(), rc);
+ printError("%s| Unable to set year format for radio using command [%s]", getName().c_str(), sCmdCSDF.c_str());
return rc;
}
@@ -1693,7 +1693,7 @@ ICellularRadio::CODE QuectelRadio::setTimeFormat(void) {
rc = sendBasicCommand(sCmdCTZU);
if (rc != SUCCESS) {
- printError("%s| Failed to set diversity for WCDMA network mode: [%d]", getName().c_str(), rc);
+ printError("%s| Unable to set automatic time zone update for radio using command [%s]", getName().c_str(), sCmdCTZU.c_str());
return rc;
}
return SUCCESS;
diff --git a/src/MTS_IO_SequansRadio.cpp b/src/MTS_IO_SequansRadio.cpp
index 31c736f..d2a2efb 100644
--- a/src/MTS_IO_SequansRadio.cpp
+++ b/src/MTS_IO_SequansRadio.cpp
@@ -577,7 +577,7 @@ ICellularRadio::CODE SequansRadio::setTimeFormat() {
rc = sendBasicCommand(sCmdCSDF);
if (rc != SUCCESS) {
- printError("%s| Failed to set diversity for WCDMA network mode: [%d]", getName().c_str(), rc);
+ printError("%s| Unable to set year format for radio using command [%s]", getName().c_str(), sCmdCSDF.c_str());
return rc;
}
@@ -586,7 +586,7 @@ ICellularRadio::CODE SequansRadio::setTimeFormat() {
rc = sendBasicCommand(sCmdCTZU);
if (rc != SUCCESS) {
- printError("%s| Failed to set diversity for WCDMA network mode: [%d]", getName().c_str(), rc);
+ printError("%s| Unable to set automatic time zone update for radio using command [%s]", getName().c_str(), sCmdCTZU.c_str());
return rc;
}
return SUCCESS;
diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp
index 261fd34..d73dc0a 100644
--- a/src/MTS_IO_TelitRadio.cpp
+++ b/src/MTS_IO_TelitRadio.cpp
@@ -1221,7 +1221,7 @@ ICellularRadio::CODE TelitRadio::setTimeFormat(void) {
rc = sendBasicCommand(sCmdCSDF);
if (rc != SUCCESS) {
- printError("%s| Failed to set diversity for WCDMA network mode: [%d]", getName().c_str(), rc);
+ printError("%s| Unable to set year format for radio using command [%s]", getName().c_str(), sCmdCSDF.c_str());
return rc;
}
@@ -1230,7 +1230,7 @@ ICellularRadio::CODE TelitRadio::setTimeFormat(void) {
rc = sendBasicCommand(sCmdCTZU);
if (rc != SUCCESS) {
- printError("%s| Failed to set diversity for WCDMA network mode: [%d]", getName().c_str(), rc);
+ printError("%s| Unable to set automatic time zone update for radio using command [%s]", getName().c_str(), sCmdCTZU.c_str());
return rc;
}
return SUCCESS;