From 5da5645c2dad56eb9654e4fbe7b9c070cb997e5d Mon Sep 17 00:00:00 2001 From: Yevhen Mykhno Date: Tue, 31 Jan 2023 13:26:34 +0200 Subject: [GP-1733] mPower R.6.3.X: L6G1 Support - libmts-io, radio-cmd, radio-query - function getRegistrationCommands() implemented as pure virtual and overrided for every base radio model - minor indentation fixes - function getSimStatusSummary(Json::Value& jData) changed to process radio modems that do not have separate commands for the SIM presence check - function getManufacturer(std::string& sManufacturer) changed: AT command changet to 'AT+CGMI' - src/MTS_IO_QuectelRadio.cpp -- comments correction --- src/MTS_IO_TelitRadio.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/MTS_IO_TelitRadio.cpp') 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 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 &wds) -{ +ICellularRadio::CODE TelitRadio::wdsList(std::set &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 &wds) std::string s = MTS::Text::split(cmdResult, '(')[1]; s = MTS::Text::split(s, ')')[0]; std::vectorv = MTS::Text::split(s, ','); - for(const auto &it : v) - { + for(const auto &it : v) { if (it.find("-") != std::string::npos) { const std::vector &r = MTS::Text::split(it, "-"); int begin, end; @@ -778,7 +776,7 @@ ICellularRadio::CODE TelitRadio::wdsList(std::set &wds) ICellularRadio::CODE TelitRadio::setCellularMode(CELLULAR_MODES networks) { std::set supportedWds; - if ( TelitRadio::wdsList(supportedWds) != SUCCESS ) { + if ( wdsList(supportedWds) != SUCCESS ) { return FAILURE; } -- cgit v1.2.3