Remove redundant code from AGC example

This commit is contained in:
Petr Gladkikh 2024-11-19 17:49:10 +04:00
parent b6b000b61f
commit 7b70230a60

View file

@ -48,12 +48,7 @@ fn main() {
// //
// Note that disabling the AGC takes up to 5 millis because periodic_access // Note that disabling the AGC takes up to 5 millis because periodic_access
// controls the source every 5 millis. // controls the source every 5 millis.
thread::sleep(Duration::from_secs(5)); thread::sleep(Duration::from_secs(4));
#[cfg(not(feature = "experimental"))]
agc_enabled.store(false, Ordering::Relaxed);
// AGC on/off control using direct access to the boolean variable.
#[cfg(feature = "experimental")]
agc_enabled.store(false, Ordering::Relaxed); agc_enabled.store(false, Ordering::Relaxed);
// Keep the program running until playback is complete // Keep the program running until playback is complete