mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
ports/stm32: Fix DMA line size error calculation.
The error calculation needs to be on the raw byte size.
This commit is contained in:
parent
cc137456dc
commit
080641c827
@ -572,7 +572,7 @@ static int stm_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
|
||||
#if defined(OMV_LINE_BUF_SIZE)
|
||||
(line_width > (OMV_LINE_BUF_SIZE / 2)) ||
|
||||
#endif
|
||||
(!csi->dma_size) || (csi->dma_size % OMV_CSI_LINE_ALIGNMENT)) {
|
||||
(!csi->dma_size) || ((line_width * fb->v) % OMV_CSI_LINE_ALIGNMENT)) {
|
||||
return OMV_CSI_ERROR_INVALID_FRAMESIZE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user