add shutdown delay

This commit is contained in:
sigil-03 2025-11-15 15:40:08 -07:00
parent 5934336984
commit 10a38f9bbc
2 changed files with 2 additions and 1 deletions

View file

@ -565,6 +565,7 @@ impl App {
self.interfaces.adc_core.shutdown();
self.interfaces.amp.disable();
crate::riscv::asm::delay(20_000_000);
}
pub fn volume_button(&mut self) {
self.settings.volume.next();

View file

@ -354,7 +354,7 @@ fn app_main(mut p: hal::Peripherals) {
led1_timer_ms: 100,
// 4 hours:
// shutdown_timer_s: 1,
shutdown_timer_s: 4 * 60 * 60,
shutdown_timer_s: 4 * 60 * 60 * 30 / 100,
// led2_timer_ms: 100,
};