From bbf069b3f359df9e7565ed5110e89805c4389712 Mon Sep 17 00:00:00 2001 From: edolomb Date: Thu, 22 Mar 2018 16:09:24 +0000 Subject: Fixed bug git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11835 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os') diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c index 4867b91e9..61ebe1fad 100644 --- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c +++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c @@ -192,7 +192,7 @@ uint32_t divisor; /* If n exceeds XDMAC_MAX_BT_SIZE, split the transfer in microblocks */ for (i = 2; i < XDMAC_MAX_BT_SIZE; i++) { divisor = XDMAC_MAX_BT_SIZE / i; - if (n % diviqsor) + if (n % divisor) continue; if ((n / divisor) <= (XDMAC_MAX_BLOCK_LEN + 1)) { (dmachp)->xdmac->XDMAC_CHID[(dmachp)->chid].XDMAC_CUBC = XDMAC_CUBC_UBLEN(i); -- cgit v1.2.3