fw-rust: Improve debouncing when going back
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
When pressing the button until the timer1 creates an interrupt in order to create a "back" event, there were some debouncing problems.
This commit is contained in:
parent
4a03c7045f
commit
9994b1fc40
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ impl ClockGenerator {
|
||||||
if self.tc1.tccr1b.read().cs1().is_prescale_64() {
|
if self.tc1.tccr1b.read().cs1().is_prescale_64() {
|
||||||
self.tc1.tccr1b.write(|w| w.cs1().no_clock());
|
self.tc1.tccr1b.write(|w| w.cs1().no_clock());
|
||||||
self.screen.input(&Input::Select);
|
self.screen.input(&Input::Select);
|
||||||
|
self.delay.delay_ms(3_u8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UPDATE_BUTTON.store(false, Ordering::SeqCst);
|
UPDATE_BUTTON.store(false, Ordering::SeqCst);
|
||||||
|
|
Loading…
Reference in a new issue