mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2779 from openmv/fix_stm_jpeg_frame_it
ports/stm: Re-enable frame interrupt in JPEG mode.
This commit is contained in:
commit
136d69cdb3
@ -664,12 +664,10 @@ static int stm_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_DCMI
|
|
||||||
// In JPEG mode, enable the end of frame interrupt.
|
// In JPEG mode, enable the end of frame interrupt.
|
||||||
if (DCMI->CR & DCMI_JPEG_ENABLE) {
|
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);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
framebuffer_flags_t fb_flags = FB_NO_FLAGS;
|
framebuffer_flags_t fb_flags = FB_NO_FLAGS;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user