From dc3a87e49baa56a9af078ba151c0df0aa6720afb Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期三, 23 三月 2022 11:53:55 +0800
Subject: [PATCH] V1.67 修复MODBUS输出0X1FFFFbug

---
 源码/核心板/Src/stm32f10x_it.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c"
index 6509cda..a5cf84b 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/stm32f10x_it.c"
@@ -53,7 +53,7 @@
 	
 	if(tag_timer++>=g_com_map[COM_INTERVAL])
 	{tag_timer=0;}
-	if(g_Resttimer++>2000)
+	if(g_Resttimer++>10000)
 	{
 		NVIC_SystemReset();
 	}
@@ -64,7 +64,7 @@
 	if(!g_com_map[DEV_ROLE])  //基站
 	{
 		tag_recv_timer++;
-		TagDistClear();
+//		TagDistClear();
 				if(g_com_map[ANC_POLL])
 		{
 			if((sync_timer-10)%g_com_map[COM_INTERVAL]==tyncpoll_time&&sync_timer>=10&&sync_timer!=1010)
@@ -73,7 +73,7 @@
 			}
 		}
 	//	if(g_com_map[ALARM_DEV]!=0)
-		main_logic();
+		//main_logic();
 		if(sync_timer==10)
 		{
 			GPIO_WriteBit(GPIOA, GPIO_Pin_9, Bit_SET);
@@ -149,4 +149,11 @@
 //  }    
 
 }
+void HardFault_Handler(void)
+{
 
+	while(1)
+	{
+		NVIC_SystemReset();
+	}
+}

--
Gitblit v1.9.3