Formatting

This commit is contained in:
huntc 2021-10-18 12:29:31 +11:00
parent 8dcc41c7f0
commit 3f31774674

View File

@ -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) });