Skip to content

Commit aaf1fc7

Browse files
committed
Remove the check for a 'divisible-by-4' buffer size, it was incorrect
1 parent ef3dc01 commit aaf1fc7

File tree

1 file changed

+0
-5
lines changed
  • embassy-usb-synopsys-otg/src

1 file changed

+0
-5
lines changed

embassy-usb-synopsys-otg/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,11 +1147,6 @@ impl<'d> embassy_usb_driver::EndpointOut for Endpoint<'d, Out> {
11471147
});
11481148

11491149
// 2. Setup DMA
1150-
assert_eq!(
1151-
buf.len() % 4,
1152-
0,
1153-
"buffer must be aligned to DMA word-size which is 4 bytes"
1154-
);
11551150
// Set the destination address of the DMA transfer.
11561151
self.regs.doepdma(index).write_value(buf.as_mut_ptr() as u32);
11571152

0 commit comments

Comments
 (0)