Skip to content

Commit 511c260

Browse files
committed
Add missing Debug for DMA channels.
1 parent 4114f56 commit 511c260

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dma.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ macro_rules! dma {
541541
/// A singleton that represents a single DMAx channel (channel X in this case)
542542
///
543543
/// This singleton has exclusive access to the registers of the DMAx channel X
544+
#[derive(Debug)]
544545
pub struct $CX;
545546

546547
impl $CX {
@@ -594,7 +595,9 @@ macro_rules! dma {
594595
#[inline]
595596
pub fn listen(&mut self, event: Event) {
596597
match event {
597-
Event::HalfTransfer => self.ccr().modify(|_, w| w.htie().set_bit()),
598+
Event::HalfTransfer => {
599+
self.ccr().modify(|_, w| w.htie().set_bit())
600+
},
598601
Event::TransferComplete => {
599602
self.ccr().modify(|_, w| w.tcie().set_bit())
600603
}

0 commit comments

Comments
 (0)