|
|
@@ -134,12 +134,12 @@ static uint16_t goto_step_event(uint16_t ns)
|
|
|
|
|
|
// 流程控制
|
|
|
uint16_t step = ns;
|
|
|
- if(ns == STEP_JOIN_AUTH_MESSAGE && STEP_JOIN_AUTH_MESSAGE_times++ >= 1)
|
|
|
+ if(step == STEP_JOIN_AUTH_MESSAGE && STEP_JOIN_AUTH_MESSAGE_times++ >= 1)
|
|
|
{
|
|
|
goto_failure("认证次数过多");
|
|
|
step = STEP_FAILURE;
|
|
|
}
|
|
|
- else if(ns == STEP_SET_CFUN_1 && STEP_SET_CFUN_1_times++ >= 2)
|
|
|
+ else if(step == STEP_SET_CFUN_1 && STEP_SET_CFUN_1_times++ >= 2)
|
|
|
{
|
|
|
goto_failure("重新联网次数过多");
|
|
|
step = STEP_FAILURE;
|
|
|
@@ -338,7 +338,7 @@ static void UDPCLIENT_Process(void)
|
|
|
result=bc260y.set_cfun(0);//设置最小功能模式
|
|
|
if(result == Result_Success)
|
|
|
{
|
|
|
- if(REGIST_GetResult() != REGIST_Result_None)
|
|
|
+ if(UDPCLIENT_GetResult() != UDPCLIENT_Result_None)
|
|
|
{
|
|
|
goto_finish();
|
|
|
}
|