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>
This commit is contained in:
parent
f01a7250f0
commit
14aa624c6b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue