From 6ffdec7d475d885ecefbc2e9683ed6cedd6686f1 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期三, 20 四月 2022 15:01:57 +0800
Subject: [PATCH] 1

---
 源码/核心板/Src/application/dw_app.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
index 3823a52..294cdb1 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
@@ -512,7 +512,7 @@
             memcpy(&tx_nearresp_msg[ANC_SIGNALPOWER],&signalpower_list[taglist_pos],2);
 			tx_nearresp_msg[MAINBASE_INDEX]=flag_syncbase;
 			tx_nearresp_msg[MESSAGE_TYPE_IDX]=NEAR_RESPONSE;
-			tx_nearresp_msg[MOTORSTATE_INDEX]=(remotesend_state<<4)|motorstate;
+			//tx_nearresp_msg[MOTORSTATE_INDEX]=(remotesend_state<<4)|motorstate;
 			waittagconfig_reponse=0;
             finalsend = 0;
 			if(pwtag.remain_time>0)
@@ -871,7 +871,7 @@
 			}
 		
 		}
-		if(i==MAX_REGTAGNUM)
+		if(i==MAX_REGTAGNUM&&g_com_map[NEARSWITCH_DISTANCE_INDEX] != 0)
 		{
 			dwt_readdiagnostics(&d1);
 			LOS(&d1);	

--
Gitblit v1.9.3