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:
YAMAMOTO Takashi
2021-01-21 13:50:52 +09:00
committed by Abdelatif Guettouche
parent 8c02b366f8
commit a4a2d5ff7d
+1 -1
View File
@@ -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++)