From 0949653893aea85a27b11584ea0a3858ce0e7f84 Mon Sep 17 00:00:00 2001 From: Amy Y Date: Tue, 12 Apr 2022 06:22:30 +1000 Subject: [PATCH] fixed up flag --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d9a7271..b16a944 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,7 @@ fn main() { let loopchip8 = chip8arc.clone(); std::thread::spawn(move || { let beeper = crate::audio::Beeper::new(flags.vol); - let beeperexist = beeper.is_ok() && flags.vol <= 0.0 && flags.vol <= 0.0; + let beeperexist = beeper.is_ok() && flags.vol > 0.0; if !beeperexist { println!("Audio not initialized!"); }