diff options
| author | Jeff Hatch <jhatch@multitech.com> | 2023-01-31 13:54:52 -0600 | 
|---|---|---|
| committer | Jeff Hatch <jhatch@multitech.com> | 2023-01-31 13:54:52 -0600 | 
| commit | b504ed673fa55ae1a429fd468079ee8c16c4a04a (patch) | |
| tree | 620e1d7509ddfe0e9b7102485ce01a0ff4549964 /src/MTS_IO_TelitRadio.cpp | |
| parent | 430506fb7757d6736988d75c8ea53c85f6c97da9 (diff) | |
| parent | 23d702dfaaa6ef20a02e410a09ae6f67e967464f (diff) | |
| download | libmts-io-b504ed673fa55ae1a429fd468079ee8c16c4a04a.tar.gz libmts-io-b504ed673fa55ae1a429fd468079ee8c16c4a04a.tar.bz2 libmts-io-b504ed673fa55ae1a429fd468079ee8c16c4a04a.zip | |
Merge branch 'ym/GP-1733/add_sequans_support' into 'master'
[GP-1733] mPower R.6.3.X: L6G1 Support
See merge request !53
Diffstat (limited to 'src/MTS_IO_TelitRadio.cpp')
| -rw-r--r-- | src/MTS_IO_TelitRadio.cpp | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp index 4a0a8b2..704f692 100644 --- a/src/MTS_IO_TelitRadio.cpp +++ b/src/MTS_IO_TelitRadio.cpp @@ -110,12 +110,12 @@ ICellularRadio::CODE TelitRadio::getVendorFirmware(std::string& sVendorFirmware)          // Not Found. Then we will use "AT+CGMR" + "AT#CFVR"          rc = getFirmware(sFirmware); -        if (rc != SUCCESS){ +        if (rc != SUCCESS) {              break;          }          rc = getFirmwareBuild(sFirmwareBuild); -        if (rc != SUCCESS){ +        if (rc != SUCCESS) {              break;          } @@ -714,7 +714,7 @@ ICellularRadio::CODE TelitRadio::getSupportedCellularModes(CELLULAR_MODES &netwo      networks = CELLULAR_MODE_NA;      std::set<int> wds; -    if ( TelitRadio::wdsList(wds) != SUCCESS ) { +    if ( wdsList(wds) != SUCCESS ) {          return FAILURE;      }      for(const auto &it : wds) { @@ -729,8 +729,7 @@ ICellularRadio::CODE TelitRadio::getSupportedCellularModes(CELLULAR_MODES &netwo      return SUCCESS;  } -ICellularRadio::CODE TelitRadio::wdsList(std::set<int> &wds) -{ +ICellularRadio::CODE TelitRadio::wdsList(std::set<int> &wds) {      std::string sCmd("AT+WS46=?");      std::string cmdResult = sendCommand(sCmd);      if (cmdResult.find("+WS46:") == std::string::npos) { @@ -745,8 +744,7 @@ ICellularRadio::CODE TelitRadio::wdsList(std::set<int> &wds)      std::string s = MTS::Text::split(cmdResult, '(')[1];      s = MTS::Text::split(s, ')')[0];      std::vector<std::string>v = MTS::Text::split(s, ','); -    for(const auto &it : v) -    { +    for(const auto &it : v) {          if (it.find("-") != std::string::npos) {              const std::vector<std::string> &r = MTS::Text::split(it, "-");              int begin, end; @@ -778,7 +776,7 @@ ICellularRadio::CODE TelitRadio::wdsList(std::set<int> &wds)  ICellularRadio::CODE TelitRadio::setCellularMode(CELLULAR_MODES networks) {      std::set<int> supportedWds; -    if ( TelitRadio::wdsList(supportedWds) != SUCCESS ) { +    if ( wdsList(supportedWds) != SUCCESS ) {          return FAILURE;      } | 
