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.

pull/7/head
df8oe 2017-06-16 13:58:54 +02:00
rodzic 23fbb836ca
commit f7fb34a910
1 zmienionych plików z 1 dodań i 1 usunięć

2
main.c
Wyświetl plik

@ -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);