summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodion.shyshkin <rodion.shyshkin@globallogic.com>2021-03-31 22:35:30 +0300
committerrodion.shyshkin <rodion.shyshkin@globallogic.com>2021-03-31 22:35:30 +0300
commitcd8f96c204d479283c34f787f2c5f056016c739b (patch)
treeba55b6ed0296cad425450856119ff132b16abd17
parent9134fd1b5c0ac1e4c16085f019019a0296888e0b (diff)
downloadradio-query-cd8f96c204d479283c34f787f2c5f056016c739b.tar.gz
radio-query-cd8f96c204d479283c34f787f2c5f056016c739b.tar.bz2
radio-query-cd8f96c204d479283c34f787f2c5f056016c739b.zip
[GP-1111] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2 - libmts-io for Telit
Changes after a code review.
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 2a51203..c82a3ae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -90,7 +90,7 @@ const uint32_t OPT_SIM_STATUS = 0x00040000;
const uint32_t OPT_RADIO_CODE = 0x00080000;
const uint32_t OPT_SIM_CARRIER_CODE = 0x00100000;
const uint32_t OPT_VENDORFIRMWARE = 0x00200000;
-const uint32_t OPT_UE_OPERAION_MODE = 0x00400000;
+const uint32_t OPT_UE_MODE_OF_OPERATION = 0x00400000;
const uint32_t OPT_SUMMARY_STATIC = 0x01000000;
const uint32_t OPT_SUMMARY_NETWORK = 0x02000000;
@@ -190,9 +190,9 @@ int main(int argc, char** argv) {
std::string sValue;
ICellularRadio::REGISTRATION eReg;
result = g_apRadio->getRegistration(eReg);
- if(result == ICellularRadio::SUCCESS) {
+ if (result == ICellularRadio::SUCCESS) {
result = g_apRadio->convertRegistrationToString(eReg, sValue);
- if(result == ICellularRadio::SUCCESS) {
+ if (result == ICellularRadio::SUCCESS) {
printf("%s", sValue.c_str());
}
}
@@ -339,7 +339,7 @@ int main(int argc, char** argv) {
printf("%s", sValue.c_str());
}
}
- else if (g_iOptions & OPT_UE_OPERAION_MODE) {
+ else if (g_iOptions & OPT_UE_MODE_OF_OPERATION) {
std::string sValue;
ICellularRadio::UE_MODES_OF_OPERATION mode;
result = g_apRadio->getUeModeOfOperation(mode);
@@ -630,7 +630,7 @@ void parseOptions(int argc, char** argv) {
{ "cellular-mode",no_argument, &iOption, OPT_CELL_MODE },
{ "supported-cellular-modes", no_argument, &iOption, OPT_SUPPORTED_CELL_MODE },
{ "sim-carrier-code", no_argument, &iOption, OPT_SIM_CARRIER_CODE },
- { "ue-mode-of-operation", no_argument,&iOption, OPT_UE_OPERAION_MODE },
+ { "ue-mode-of-operation", no_argument,&iOption, OPT_UE_MODE_OF_OPERATION },
{ 0, 0, 0, 0 } };
/* getopt_long stores the option index here. */