From 51e761ab51d4351997c78d77dc11be91131234f6 Mon Sep 17 00:00:00 2001 From: Kezi Date: Sun, 18 Feb 2024 12:25:21 +0100 Subject: [PATCH] Remove 4096 limit for SPI dma transfer size (#379) --- src/spi.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/spi.rs b/src/spi.rs index 42eb3a2d0..1274d7d78 100644 --- a/src/spi.rs +++ b/src/spi.rs @@ -100,7 +100,6 @@ impl Dma { match max_transfer_size { 0 => panic!("The max transfer size must be greater than 0"), x if x % 4 != 0 => panic!("The max transfer size must be a multiple of 4"), - x if x > 4096 => panic!("The max transfer size must be less than or equal to 4096"), _ => max_transfer_size, } }