Formatting
This commit is contained in:
parent
8dcc41c7f0
commit
3f31774674
@ -320,9 +320,7 @@ impl<'d, const N: usize> Saadc<'d, N> {
|
|||||||
r.events_end.reset();
|
r.events_end.reset();
|
||||||
r.intenset.write(|w| w.end().set());
|
r.intenset.write(|w| w.end().set());
|
||||||
|
|
||||||
if sampler(&bufs[current_buffer])
|
if sampler(&bufs[current_buffer]) == SamplerState::Sampled {
|
||||||
== SamplerState::Sampled
|
|
||||||
{
|
|
||||||
let next_buffer = 1 - current_buffer;
|
let next_buffer = 1 - current_buffer;
|
||||||
current_buffer = next_buffer;
|
current_buffer = next_buffer;
|
||||||
r.tasks_start.write(|w| unsafe { w.bits(1) });
|
r.tasks_start.write(|w| unsafe { w.bits(1) });
|
||||||
|
Loading…
Reference in New Issue
Block a user