只在初次进入检测命令时清除检测结果,检测结束时获取检测结果加入有效性判断

This commit is contained in:
ranchuan
2023-12-04 11:02:41 +08:00
parent c4a1d5c088
commit 95a4faff3f
8 changed files with 22 additions and 30 deletions

View File

@@ -24,7 +24,8 @@ void CtrlGpio_DefInit(void)
GPIO_ResetBits(GPIOA,GPIO_InitStructure.GPIO_Pin);
GPIO_InitStructure.GPIO_Pin = SEG0_Pin;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IN_FLOATING;
//GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IN_FLOATING;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IPD;
GPIO_Init(GPIOA,&GPIO_InitStructure);