Change SARAR4 CEREG to CREG
This commit is contained in:
@@ -326,7 +326,7 @@ TINY_GSM_MODEM_GET_SIMCCID_CCID()
|
|||||||
return SIM_ERROR;
|
return SIM_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
TINY_GSM_MODEM_GET_REGISTRATION_XREG(CEREG)
|
TINY_GSM_MODEM_GET_REGISTRATION_XREG(CREG)
|
||||||
|
|
||||||
TINY_GSM_MODEM_GET_OPERATOR_COPS()
|
TINY_GSM_MODEM_GET_OPERATOR_COPS()
|
||||||
|
|
||||||
@@ -340,8 +340,8 @@ TINY_GSM_MODEM_GET_CSQ()
|
|||||||
RegStatus s = getRegistrationStatus();
|
RegStatus s = getRegistrationStatus();
|
||||||
if (s == REG_OK_HOME || s == REG_OK_ROAMING)
|
if (s == REG_OK_HOME || s == REG_OK_ROAMING)
|
||||||
return true;
|
return true;
|
||||||
else if (s == REG_UNKNOWN) // for some reason, it can hang at unknown..
|
// else if (s == REG_UNKNOWN) // for some reason, it can hang at unknown..
|
||||||
return isGprsConnected();
|
// return isGprsConnected();
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user