Skip to content
Permalink
Browse files

ext: mcux: csi: Fix wrong circular queue delta calculation

This error causes various instabilities during capture.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
  • Loading branch information...
Loic Poulain authored and galak committed Mar 15, 2019
1 parent f01a725 commit 14aa624c6be2fd6a2f68c852199d432ae09b0403
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/hal/nxp/mcux/drivers/imx/fsl_csi.c
@@ -146,7 +146,7 @@ static uint32_t CSI_TransferGetQueueDelta(uint32_t startIdx, uint32_t endIdx)
}
else
{
return startIdx + CSI_DRIVER_ACTUAL_QUEUE_SIZE - endIdx;
return endIdx + CSI_DRIVER_ACTUAL_QUEUE_SIZE - startIdx;
}
}

0 comments on commit 14aa624

Please sign in to comment.
You can’t perform that action at this time.