From f3e530cfec7fafc85659ccae7bb8491e303e4ab2 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 23 Jul 2025 11:01:51 +0200 Subject: [PATCH] ports/stm: Re-enable frame interrupt in JPEG mode. This macro was removed so FRAME_IT was not enabled. Signed-off-by: iabdalkader --- ports/stm32/omv_csi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ports/stm32/omv_csi.c b/ports/stm32/omv_csi.c index 2ea7aca96..ba1b1f543 100644 --- a/ports/stm32/omv_csi.c +++ b/ports/stm32/omv_csi.c @@ -664,12 +664,10 @@ static int stm_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) { } #endif - #if USE_DCMI // 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); } - #endif framebuffer_flags_t fb_flags = FB_NO_FLAGS;