Skip to content

Commit 14aa624

Browse files
Loic Poulaingalak
authored andcommitted
ext: mcux: csi: Fix wrong circular queue delta calculation
This error causes various instabilities during capture. Signed-off-by: Loic Poulain <[email protected]>
1 parent f01a725 commit 14aa624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/hal/nxp/mcux/drivers/imx/fsl_csi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static uint32_t CSI_TransferGetQueueDelta(uint32_t startIdx, uint32_t endIdx)
146146
}
147147
else
148148
{
149-
return startIdx + CSI_DRIVER_ACTUAL_QUEUE_SIZE - endIdx;
149+
return endIdx + CSI_DRIVER_ACTUAL_QUEUE_SIZE - startIdx;
150150
}
151151
}
152152

0 commit comments

Comments
 (0)