diff --git a/my_src/switches.c b/my_src/switches.c index 7bfda1d..45df396 100644 --- a/my_src/switches.c +++ b/my_src/switches.c @@ -112,7 +112,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { rotary_a_interrupt(); } if (GPIO_Pin == GPIO_PIN_4) { - rotary_b_interrupt(); + // rotary_b_interrupt(); } } diff --git a/my_src/switches.h b/my_src/switches.h index 6327027..e8defaa 100644 --- a/my_src/switches.h +++ b/my_src/switches.h @@ -8,8 +8,8 @@ #ifndef SWITCHES_H_ #define SWITCHES_H_ -const uint32_t DEBOUNCING_DEAD_TIME = 100; -const uint32_t DEBOUNCING_REPEAT = 20; +const uint32_t DEBOUNCING_DEAD_TIME = 25; +const uint32_t DEBOUNCING_REPEAT = 2; const uint32_t LONG_BUTTON_TIME = 1000; void buttonShort();