Remove 4096 limit for SPI dma transfer size (#379)

This commit is contained in:
Kezi 2024-02-18 12:25:21 +01:00 committed by GitHub
parent 81675ccbf5
commit 51e761ab51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
}
}