1.修复启动模式获取错误问题
This commit is contained in:
parent
e8f2ea7d8f
commit
7e4f40ccc0
|
@ -3992,7 +3992,7 @@ SINT32 sf_net_regist_manual(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((sf_get_mode_flag()) || (PWR_ON_GPRS_INIT == sf_convert_power_on_mode()) || (PWR_ON_DAILY_REPORT == sf_convert_power_on_mode()))
|
if((sf_get_mode_flag()) || (PWR_ON_GPRS_INIT == sf_poweron_type_get()) || (PWR_ON_DAILY_REPORT == sf_poweron_type_get()))
|
||||||
{
|
{
|
||||||
eNetRegLocation = QUECTEL_NETREG_ATW;
|
eNetRegLocation = QUECTEL_NETREG_ATW;
|
||||||
strcpy((char *)gsmPara, "AT&W\r");
|
strcpy((char *)gsmPara, "AT&W\r");
|
||||||
|
@ -4142,7 +4142,7 @@ SINT32 sf_auto_net_reg(void)
|
||||||
}
|
}
|
||||||
else if(strstr((const char *)gsmPara, "+QSIMSTAT: 0,1"))
|
else if(strstr((const char *)gsmPara, "+QSIMSTAT: 0,1"))
|
||||||
{
|
{
|
||||||
if(PWR_ON_SMS == sf_convert_power_on_mode())
|
if(PWR_ON_SMS == sf_poweron_type_get())
|
||||||
{
|
{
|
||||||
eNetRegLocation = QUECTEL_NETREG_CGREG;
|
eNetRegLocation = QUECTEL_NETREG_CGREG;
|
||||||
strcpy((char *)gsmPara, "AT+CGREG?\r");
|
strcpy((char *)gsmPara, "AT+CGREG?\r");
|
||||||
|
|
|
@ -964,7 +964,7 @@ unsigned char sf_commu_parse_mcu_data(unsigned char * src, unsigned int len)
|
||||||
{
|
{
|
||||||
sf_set_pir_statu_flag(0);
|
sf_set_pir_statu_flag(0);
|
||||||
sf_set_module_sleep_flag(0);
|
sf_set_module_sleep_flag(0);
|
||||||
if((PWR_ON_SETUP != sf_convert_power_on_mode()) && (PWR_ON_USB!= sf_convert_power_on_mode()))
|
if((PWR_ON_SETUP != sf_poweron_type_get()) && (PWR_ON_USB!= sf_poweron_type_get()))
|
||||||
{
|
{
|
||||||
printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__);
|
printf("[power off] %s(%d)\n", __FUNCTION__, __LINE__);
|
||||||
sf_set_power_off_flag(1);
|
sf_set_power_off_flag(1);
|
||||||
|
|
|
@ -1157,7 +1157,7 @@ UINT8 sf_get_power_on_mode(void)
|
||||||
}
|
}
|
||||||
return ModeFlag;
|
return ModeFlag;
|
||||||
}
|
}
|
||||||
UINT8 sf_convert_power_on_mode(void)
|
UINT8 sf_convert_power_on_mode(void)//sf_poweron_type_get
|
||||||
{
|
{
|
||||||
//PowerOnMode &= 0x0f;
|
//PowerOnMode &= 0x0f;
|
||||||
//printf("[%s:%d]PowerOnMode=0x%x\n",__FUNCTION__,__LINE__,PowerOnMode);
|
//printf("[%s:%d]PowerOnMode=0x%x\n",__FUNCTION__,__LINE__,PowerOnMode);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user