From 34996ef22c513b5039a7540d180640335db19358 Mon Sep 17 00:00:00 2001 From: Jeff Hatch Date: Wed, 11 Sep 2019 09:00:57 -0500 Subject: Add ME910 models to devices that use CGREG for registration check --- src/MTS_IO_CellularRadio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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: "; -- cgit v1.2.3