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
@ -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…
Reference in New Issue
Block a user