From a062baae3837b453f0c05d0730ba465c6d2c2446 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 28 Mar 2022 02:18:13 +0200 Subject: [PATCH] nrf/usb: fix wrong DMA read size --- embassy-nrf/src/usb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-nrf/src/usb.rs b/embassy-nrf/src/usb.rs index 203f08fc..2621e65f 100644 --- a/embassy-nrf/src/usb.rs +++ b/embassy-nrf/src/usb.rs @@ -363,7 +363,7 @@ unsafe fn read_dma(i: usize, buf: &mut [u8]) -> Result buf.len() { return Err(ReadError::BufferOverflow); }