stm32: Moved comment to match request_stop

This commit is contained in:
Peter Krull 2024-09-19 18:25:08 +02:00
parent 907d55ea82
commit 2a9cdaabaa

View File

@ -498,15 +498,15 @@ impl AnyChannel {
match self.info().dma {
#[cfg(dma)]
DmaInfo::Dma(r) => {
// Disable the channel without overwriting the existing configuration
r.st(info.num).cr().modify(|w| {
// Disable the channel without overwriting the existing configuration
w.set_en(false);
});
}
#[cfg(bdma)]
DmaInfo::Bdma(r) => {
// Disable the channel without overwriting the existing configuration
r.ch(info.num).cr().modify(|w| {
// Disable the channel without overwriting the existing configuration
w.set_en(false);
});
}