add initial long press deep sleep handling

This commit is contained in:
sigil-03 2025-11-05 14:52:39 -07:00
parent 5aa56a244d
commit 7d93cd8977
2 changed files with 44 additions and 206 deletions

View file

@ -431,10 +431,18 @@ impl App {
#[cfg(feature = "enable_print")]
println!("short press");
}
fn main_button_long_press(&self) {
fn main_button_long_press(&mut self) {
// TODO
#[cfg(feature = "enable_print")]
println!("long press");
self.set_state(State::DeepSleep);
}
}
// Getters
impl App {
pub fn get_state(&self) -> State {
self.state
}
}