mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
ports/stm32: Only enable frame int manually in jpeg mode.
The frame interrupt was being enabled for non-JPEG transfers, causing massive image corruption and out-of-sync issues on the M4 and M7. This interrupt only needs to be enabled for JPEG mode where the size of the image is not known.
This commit is contained in:
parent
908d612ace
commit
cc137456dc
@ -626,7 +626,7 @@ static int stm_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// In JPEG mode, enable the end of frame interrupt.
|
// In JPEG mode, enable the end of frame interrupt.
|
||||||
if (!csi->mipi_if && csi->pixformat != PIXFORMAT_JPEG) {
|
if (!csi->mipi_if && csi->pixformat == PIXFORMAT_JPEG) {
|
||||||
__HAL_DCMI_ENABLE_IT(&csi->dcmi, DCMI_IT_FRAME);
|
__HAL_DCMI_ENABLE_IT(&csi->dcmi, DCMI_IT_FRAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user