diff options
author | Jeff Hatch <Jeff.Hatch@multitech.com> | 2017-07-13 07:36:27 -0500 |
---|---|---|
committer | Jeff Hatch <Jeff.Hatch@multitech.com> | 2017-07-13 07:36:27 -0500 |
commit | 57b06af5b3e4e3c139cefbebb9fe76a8191c82ec (patch) | |
tree | d9288e1871d6a40f34f0ee0289864e6e03a0daf5 /src/MTS_IO_CellularRadio.cpp | |
parent | cb427be9a092b0968aee1a42a2bc805735c9c8f2 (diff) | |
download | libmts-io-57b06af5b3e4e3c139cefbebb9fe76a8191c82ec.tar.gz libmts-io-57b06af5b3e4e3c139cefbebb9fe76a8191c82ec.tar.bz2 libmts-io-57b06af5b3e4e3c139cefbebb9fe76a8191c82ec.zip |
Add support for US Cellular devices1.0.2
Diffstat (limited to 'src/MTS_IO_CellularRadio.cpp')
-rw-r--r-- | src/MTS_IO_CellularRadio.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp index 8f838b6..2acc064 100644 --- a/src/MTS_IO_CellularRadio.cpp +++ b/src/MTS_IO_CellularRadio.cpp @@ -86,6 +86,7 @@ const std::string CellularRadio::KEY_CARRIER("carrier"); //!< Cellular Service const std::string CellularRadio::VALUE_CARRIER_VERIZON("Verizon"); const std::string CellularRadio::VALUE_CARRIER_AERIS("Aeris"); const std::string CellularRadio::VALUE_CARRIER_SPRINT("Sprint"); +const std::string CellularRadio::VALUE_CARRIER_USCELLULAR("U.S. Cellular"); const std::string CellularRadio::VALUE_CARRIER_ATT("AT&T"); const std::string CellularRadio::VALUE_CARRIER_TMOBILE("T-Mobile"); @@ -1588,7 +1589,7 @@ bool CellularRadio::getCarrierFromFirmware(const std::string& sFirmware, std::st // "z" = is the product type, i.e. DUAL or SC // "y" = is the carrier variant // "x" = is the firmware version - // Telit will do their best to keep the carrier variant as "0" for Sprint, "1" for Aeris, and "2" for Verizon. + // Telit will do their best to keep the carrier variant as "0" for Sprint, "1" for Aeris, "2" for Verizon, and "3" for U.S. Cellular. const uint32_t CARRIER_INDEX = 1; //y in [zyx] @@ -1607,14 +1608,18 @@ bool CellularRadio::getCarrierFromFirmware(const std::string& sFirmware, std::st if(cId == '0') { sCarrier = VALUE_CARRIER_SPRINT; bResult = true; - } + } else if(cId == '1') { sCarrier = VALUE_CARRIER_AERIS; bResult = true; - } + } else if(cId == '2') { sCarrier = VALUE_CARRIER_VERIZON; bResult = true; + } else + if(cId == '3') { + sCarrier = VALUE_CARRIER_USCELLULAR; + bResult = true; } } } |