diff options
author | Jeff Hatch <jhatch@multitech.com> | 2019-09-11 09:00:57 -0500 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2019-09-11 09:00:57 -0500 |
commit | 34996ef22c513b5039a7540d180640335db19358 (patch) | |
tree | 772f918b3c0cda674731656ca48771c96a6b3aef /src/MTS_IO_CellularRadio.cpp | |
parent | d686f922bdf2e32b242001dae10489808ad2d202 (diff) | |
download | libmts-io-34996ef22c513b5039a7540d180640335db19358.tar.gz libmts-io-34996ef22c513b5039a7540d180640335db19358.tar.bz2 libmts-io-34996ef22c513b5039a7540d180640335db19358.zip |
Add ME910 models to devices that use CGREG for registration check
Diffstat (limited to 'src/MTS_IO_CellularRadio.cpp')
-rw-r--r-- | src/MTS_IO_CellularRadio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp index 6df92e0..6f45da4 100644 --- a/src/MTS_IO_CellularRadio.cpp +++ b/src/MTS_IO_CellularRadio.cpp @@ -741,7 +741,8 @@ ICellularRadio::CODE CellularRadio::getRegistration(REGISTRATION& eRegistration) std::string sResp; // LE910C1-NS is an LE910, so we stop the scan after the 0. - if (m_sName.find("LE910") != std::string::npos) { + // NOTE: Eventually this may need to be changed to try all three of CREG, CGREG, and CEREG + if ((m_sName.find("LE910") != std::string::npos) || (m_sName.find("ME910") != std::string::npos)) { // use AT+CGREG instead for LE910 models sCmd = "AT+CGREG?"; sResp = "+CGREG: "; |