浏览代码

修改nb发送流程代码

龙三郎 1 年之前
父节点
当前提交
3e95ea2509
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Drivers/Modules/bc260y/BC260Y_UDP_Client5.c

+ 3 - 3
Drivers/Modules/bc260y/BC260Y_UDP_Client5.c

@@ -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();
 				}