improve de-bounce interval to 150 ms

This commit is contained in:
Yunhorn 2024-05-08 18:03:18 +08:00
parent 320ca4da3c
commit d0ae66dbcd
2 changed files with 2 additions and 2 deletions

View File

@ -632,7 +632,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{ {
#ifdef STS_O7 #ifdef STS_O7
case HALL1_Pin: case HALL1_Pin:
HAL_Delay(50); //de-bouncing HAL_Delay(150); //de-bouncing
sts_hall1_read = HALL1_STATE; sts_hall1_read = HALL1_STATE;
APP_LOG(TS_OFF, VLEVEL_M, "\n\n Door Contact Read = %02X \r\n", 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; break;
case HALL2_Pin: case HALL2_Pin:
HAL_Delay(50); //de-bouncing HAL_Delay(150); //de-bouncing
sts_hall2_read = HALL2_STATE; sts_hall2_read = HALL2_STATE;
APP_LOG(TS_OFF, VLEVEL_M, "\n\n SOS Button Read = %02X \r\n", HALL2_STATE); APP_LOG(TS_OFF, VLEVEL_M, "\n\n SOS Button Read = %02X \r\n", HALL2_STATE);

Binary file not shown.