Skip to content

Commit

Permalink
Fix CSI2 RevA line count end condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Sep 11, 2024
1 parent 4664d3b commit a5226c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/CSI2/csi2_reva.c
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ void MXC_CSI2_RevA_DMA_Handler(void)
#ifdef GPIO_INDICATOR
MXC_GPIO_OutToggle(indicator.port, indicator.mask);
#endif
if (line_cnt > csi2_state.req->lines_per_frame) {
if (line_cnt >= csi2_state.req->lines_per_frame) {
// Frame complete
line_cnt = 0;
MXC_CSI2_RevA_Stop((mxc_csi2_reva_regs_t *)MXC_CSI2);
Expand Down

0 comments on commit a5226c1

Please sign in to comment.