diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index 8bf4f727..d9b76642 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs @@ -320,7 +320,7 @@ impl<'d, const N: usize> Saadc<'d, N> { r.events_end.reset(); r.intenset.write(|w| w.end().set()); - if sampler(&bufs[current_buffer][0..r.result.amount.read().bits() as usize / N]) + if sampler(&bufs[current_buffer]) == SamplerState::Sampled { let next_buffer = 1 - current_buffer;