From 3f141eba703463e01e2b5d6489351d3cf50e1100 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期五, 24 九月 2021 10:26:42 +0800
Subject: [PATCH] 1

---
 源码/核心板/Src/stm32f10x_it.c |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 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 d296bd3..8e4f357 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"
@@ -55,19 +55,19 @@
 	//GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_RESET);			
 	if(sync_timer>=1000)
 		{
-			if(getrange_success==0)
-			{
-				NVIC_SystemReset();
-			}
+//			if(getrange_success==0)
+//			{
+//				NVIC_SystemReset();
+//			}
 			flag_newsecond=1;
 		//GPIO_WriteBit(GPIOA, GPIO_Pin_10, Bit_SET);	
 			sync_timer=0;
 		  TagListUpdate();
 		}
 		
-	if(g_Resttimer++>20000)
+	if(g_Resttimer++>10000)
 	{
-		NVIC_SystemReset();
+	//	NVIC_SystemReset();
 	}
 
 
@@ -160,4 +160,12 @@
 //  }    
 
 }
+void HardFalut_Handler(void)
+{
+	while(1)
+	{
+		NVIC_SystemReset();
+	}
+
+}
 

--
Gitblit v1.9.3