Skip to content

Commit

Permalink
chore(ui): get back to idle after beacon and use 50 for volume (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKaravaev authored Dec 11, 2024
1 parent 18aaa68 commit 335bfe7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ui/src/beacon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ pub async fn beacon(ui: &dyn Engine, duration: Duration) -> Result<()> {
time::sleep(Duration::from_secs(1)).await;
}

ui.idle();
Ok(())
}
2 changes: 1 addition & 1 deletion ui/src/engine/diamond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ impl EventHandler for Runner<DIAMOND_RING_LED_COUNT, DIAMOND_CENTER_LED_COUNT> {
}
Event::Beacon => {
let master_volume = self.sound.volume();
self.sound.set_master_volume(100);
self.sound.set_master_volume(50);
self.sound.queue(
sound::Type::Melody(sound::Melody::IrisScanningLoop01A),
Duration::ZERO,
Expand Down
2 changes: 1 addition & 1 deletion ui/src/engine/pearl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl EventHandler for Runner<PEARL_RING_LED_COUNT, PEARL_CENTER_LED_COUNT> {
}
Event::Beacon => {
let master_volume = self.sound.volume();
self.sound.set_master_volume(100);
self.sound.set_master_volume(50);
self.sound.queue(
sound::Type::Melody(sound::Melody::IrisScanningLoop01A),
Duration::ZERO,
Expand Down

0 comments on commit 335bfe7

Please sign in to comment.