improve de-bounce interval to 150 ms
This commit is contained in:
parent
320ca4da3c
commit
d0ae66dbcd
|
@ -632,7 +632,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
|||
{
|
||||
#ifdef STS_O7
|
||||
case HALL1_Pin:
|
||||
HAL_Delay(50); //de-bouncing
|
||||
HAL_Delay(150); //de-bouncing
|
||||
sts_hall1_read = HALL1_STATE;
|
||||
APP_LOG(TS_OFF, VLEVEL_M, "\n\n Door Contact Read = %02X \r\n", HALL1_STATE);
|
||||
|
||||
|
@ -646,7 +646,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
|
|||
break;
|
||||
|
||||
case HALL2_Pin:
|
||||
HAL_Delay(50); //de-bouncing
|
||||
HAL_Delay(150); //de-bouncing
|
||||
sts_hall2_read = HALL2_STATE;
|
||||
APP_LOG(TS_OFF, VLEVEL_M, "\n\n SOS Button Read = %02X \r\n", HALL2_STATE);
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue