From f7fb34a91080322a36179c6f0077680fb843670e Mon Sep 17 00:00:00 2001 From: df8oe Date: Fri, 16 Jun 2017 13:58:54 +0200 Subject: [PATCH] Reduced time for power button to be pressed because of it is stable working using smaller time AND reaction to pressing now is much more acceptable. Long time test under different conditions will be done. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 2b4d043..a620cab 100644 --- a/main.c +++ b/main.c @@ -74,7 +74,7 @@ void TIM2_IRQHandler(void) { if (ALLOW_DISABLE_BY_BUTTON){ if (ADCVal[1] > adc_bottom){ button_pressed++; - if (button_pressed > (5 * RTTY_SPEED)){ + if (button_pressed > (RTTY_SPEED / 3)){ disable_armed = 1; GPIO_SetBits(GPIOB, RED); GPIO_SetBits(GPIOB, GREEN);