From 57b06af5b3e4e3c139cefbebb9fe76a8191c82ec Mon Sep 17 00:00:00 2001 From: Jeff Hatch Date: Thu, 13 Jul 2017 07:36:27 -0500 Subject: Add support for US Cellular devices --- src/MTS_IO_CellularRadio.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/MTS_IO_CellularRadio.cpp') 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; } } } -- cgit v1.2.3