mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 18:28:25 +00:00
esp32_dma_init: Fix a dubious assertion
Requiring the size to be a multiple of 3 is a very strange restriction. It doesn't even work with the default value of SPI_SLAVE_BUFSIZE. I guess it was a typo.
This commit is contained in:
parent
8c02b366f8
commit
a4a2d5ff7d
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ uint32_t esp32_dma_init(struct esp32_dmadesc_s *dmadesc, uint32_t num,
|
|||
DEBUGASSERT(pbuf && len);
|
||||
if (isrx)
|
||||
{
|
||||
DEBUGASSERT((len % 3) == 0);
|
||||
DEBUGASSERT((len & 3) == 0);
|
||||
}
|
||||
|
||||
for (i = 0; i < num; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue