From d0ae66dbcd78abe9bda06bc0f1437ba22270e013 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 8 May 2024 18:03:18 +0800 Subject: [PATCH] improve de-bounce interval to 150 ms --- LoRaWAN/App/lora_app.c | 4 ++-- STM32CubeIDE/Release/STS_O7.bin | Bin 253656 -> 253656 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 6d61729..d41391c 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -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); diff --git a/STM32CubeIDE/Release/STS_O7.bin b/STM32CubeIDE/Release/STS_O7.bin index 0a7c90628498163323d3b3fb1ea3671b5d3513e5..331a813a13226053dd65572a9615a83077acf4b1 100644 GIT binary patch delta 34 pcmcbym;c6I{ta)E7^h8so8-zkt=Txa-8h*Mh?%wy>sO>$*4YBo-8H%?{*Vy5lJ$;?Zu0SU?tng9R*