aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuntc <[email protected]>2021-10-18 12:29:31 +1100
committerhuntc <[email protected]>2021-10-18 12:29:31 +1100
commit3f31774674686bcd6c99a3d0443e9cf517dc0e82 (patch)
tree238a4b5a4da4720dcc3294f687ff4b07d0b1c5da
parent8dcc41c7f04ebcb6246d3f4f3c672d7b947ab82d (diff)
Formatting
-rw-r--r--embassy-nrf/src/saadc.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs
index d9b766420..215f968a7 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> {
320 r.events_end.reset(); 320 r.events_end.reset();
321 r.intenset.write(|w| w.end().set()); 321 r.intenset.write(|w| w.end().set());
322 322
323 if sampler(&bufs[current_buffer]) 323 if sampler(&bufs[current_buffer]) == SamplerState::Sampled {
324 == SamplerState::Sampled
325 {
326 let next_buffer = 1 - current_buffer; 324 let next_buffer = 1 - current_buffer;
327 current_buffer = next_buffer; 325 current_buffer = next_buffer;
328 r.tasks_start.write(|w| unsafe { w.bits(1) }); 326 r.tasks_start.write(|w| unsafe { w.bits(1) });