1.兼容eg915q注网流程

This commit is contained in:
payton 2023-07-25 11:34:12 +08:00
parent 35da120b35
commit dbd7ec304f

View File

@ -3335,7 +3335,7 @@ SINT32 sf_net_regist_manual(void)
sf_test_code_err(eNetRegLocation, "+CGREG: 0,2"); sf_test_code_err(eNetRegLocation, "+CGREG: 0,2");
#endif #endif
if((strstr((const char *)gsmPara, "+CGREG: 0,1") != NULL) || (strstr((const char *)gsmPara, "+CGREG: 0,5") != NULL)) if((strstr((const char *)gsmPara, "+CGREG: 2,1") != NULL) || (strstr((const char *)gsmPara, "+CGREG: 0,1") != NULL) || (strstr((const char *)gsmPara, "+CGREG: 0,5") != NULL))
{ {
if(PWR_ON_TIME_SYNC == sf_poweron_type_get()) if(PWR_ON_TIME_SYNC == sf_poweron_type_get())
{ {
@ -3976,7 +3976,7 @@ SINT32 sf_auto_net_reg(void)
#endif #endif
if((strstr((const char *)gsmPara, "+CGREG: 0,1") != NULL) || (strstr((const char *)gsmPara, "+CGREG: 0,5") != NULL)) if((strstr((const char *)gsmPara, "+CGREG: 2,1") != NULL) || (strstr((const char *)gsmPara, "+CGREG: 0,1") != NULL) || (strstr((const char *)gsmPara, "+CGREG: 0,5") != NULL))
{ {
eNetRegLocation = QUECTEL_NETREG_QNWINFO; eNetRegLocation = QUECTEL_NETREG_QNWINFO;
strcpy((char *)gsmPara, "AT+QNWINFO\r"); strcpy((char *)gsmPara, "AT+QNWINFO\r");