kopia lustrzana https://github.com/Qyon/STM32_RTTY
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.
rodzic
23fbb836ca
commit
f7fb34a910
2
main.c
2
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);
|
||||
|
|
Ładowanie…
Reference in New Issue