fw-rust: Improve debouncing when going back
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:
finga 2022-04-02 18:24:31 +02:00
parent 4a03c7045f
commit 9994b1fc40

View file

@ -160,6 +160,7 @@ impl ClockGenerator {
if self.tc1.tccr1b.read().cs1().is_prescale_64() {
self.tc1.tccr1b.write(|w| w.cs1().no_clock());
self.screen.input(&Input::Select);
self.delay.delay_ms(3_u8);
}
}
UPDATE_BUTTON.store(false, Ordering::SeqCst);