diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index d9b76642..215f968a 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs @@ -320,9 +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]) - == SamplerState::Sampled - { + if sampler(&bufs[current_buffer]) == SamplerState::Sampled { let next_buffer = 1 - current_buffer; current_buffer = next_buffer; r.tasks_start.write(|w| unsafe { w.bits(1) });