只在初次进入检测命令时清除检测结果,检测结束时获取检测结果加入有效性判断
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user