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:
Ibrahim Abdelkader 2025-07-23 12:11:56 +03:00 committed by GitHub
commit 136d69cdb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;