add shutdown delay
This commit is contained in:
parent
5934336984
commit
10a38f9bbc
2 changed files with 2 additions and 1 deletions
|
|
@ -565,6 +565,7 @@ impl App {
|
||||||
self.interfaces.adc_core.shutdown();
|
self.interfaces.adc_core.shutdown();
|
||||||
|
|
||||||
self.interfaces.amp.disable();
|
self.interfaces.amp.disable();
|
||||||
|
crate::riscv::asm::delay(20_000_000);
|
||||||
}
|
}
|
||||||
pub fn volume_button(&mut self) {
|
pub fn volume_button(&mut self) {
|
||||||
self.settings.volume.next();
|
self.settings.volume.next();
|
||||||
|
|
|
||||||
|
|
@ -354,7 +354,7 @@ fn app_main(mut p: hal::Peripherals) {
|
||||||
led1_timer_ms: 100,
|
led1_timer_ms: 100,
|
||||||
// 4 hours:
|
// 4 hours:
|
||||||
// shutdown_timer_s: 1,
|
// shutdown_timer_s: 1,
|
||||||
shutdown_timer_s: 4 * 60 * 60,
|
shutdown_timer_s: 4 * 60 * 60 * 30 / 100,
|
||||||
// led2_timer_ms: 100,
|
// led2_timer_ms: 100,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue