summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrodion.shyshkin <rodion.shyshkin@globallogic.com>2021-03-31 22:29:58 +0300
committerrodion.shyshkin <rodion.shyshkin@globallogic.com>2021-03-31 22:29:58 +0300
commit2ff46750ec3f1004a5c153944c18dbb081911a03 (patch)
tree462c39deb1e12c5c6c017f49bc245f3d4fc703a6 /src
parent285cee922e229cb1bbd704e6227dbbb3756bd889 (diff)
downloadlibmts-io-2ff46750ec3f1004a5c153944c18dbb081911a03.tar.gz
libmts-io-2ff46750ec3f1004a5c153944c18dbb081911a03.tar.bz2
libmts-io-2ff46750ec3f1004a5c153944c18dbb081911a03.zip
[GP-1111] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2 - libmts-io for Telit
Changes after a code review
Diffstat (limited to 'src')
-rw-r--r--src/MTS_IO_CellularRadio.cpp28
-rw-r--r--src/MTS_IO_ICellularRadio.cpp27
2 files changed, 27 insertions, 28 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp
index ee45ace..49bdcb4 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -1389,31 +1389,3 @@ ICellularRadio::CODE CellularRadio::getUeModeOfOperation(UE_MODES_OF_OPERATION &
newmode = UE_MODES_OF_OPERATION::UNKNOWN_MODE;
return CODE::NOT_APPLICABLE;
}
-
-ICellularRadio::CODE CellularRadio::convertUeModeToString(ICellularRadio::UE_MODES_OF_OPERATION mode, std::string& string) {
- CODE rc;
- switch (mode) {
- case ICellularRadio::UE_MODES_OF_OPERATION::PS_MODE1:
- string = "ps_1";
- rc = CODE::SUCCESS;
- break;
- case ICellularRadio::UE_MODES_OF_OPERATION::PS_MODE2:
- string = "ps_2";
- rc = CODE::SUCCESS;
- break;
- case ICellularRadio::UE_MODES_OF_OPERATION::CS_PS_MODE1:
- string = "csps_1";
- rc = CODE::SUCCESS;
- break;
- case ICellularRadio::UE_MODES_OF_OPERATION::CS_PS_MODE2:
- string = "csps_2";
- rc = CODE::SUCCESS;
- break;
- default:
- string = "unknown";
- rc = CODE::FAILURE;
- break;
- }
- return rc;
-}
-
diff --git a/src/MTS_IO_ICellularRadio.cpp b/src/MTS_IO_ICellularRadio.cpp
index 73737c7..0621740 100644
--- a/src/MTS_IO_ICellularRadio.cpp
+++ b/src/MTS_IO_ICellularRadio.cpp
@@ -513,3 +513,30 @@ std::string MTS::IO::ICellularRadio::getCodeAsString(CODE eCode) {
}
}
+MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertUeModeToString(MTS::IO::ICellularRadio::UE_MODES_OF_OPERATION mode, std::string &string) {
+ CODE rc;
+ switch (mode) {
+ case ICellularRadio::UE_MODES_OF_OPERATION::PS_MODE1:
+ string = "ps_1";
+ rc = CODE::SUCCESS;
+ break;
+ case ICellularRadio::UE_MODES_OF_OPERATION::PS_MODE2:
+ string = "ps_2";
+ rc = CODE::SUCCESS;
+ break;
+ case ICellularRadio::UE_MODES_OF_OPERATION::CS_PS_MODE1:
+ string = "csps_1";
+ rc = CODE::SUCCESS;
+ break;
+ case ICellularRadio::UE_MODES_OF_OPERATION::CS_PS_MODE2:
+ string = "csps_2";
+ rc = CODE::SUCCESS;
+ break;
+ default:
+ string = MTS::IO::ICellularRadio::VALUE_UNKNOWN;
+ rc = CODE::FAILURE;
+ break;
+ }
+ return rc;
+}
+