File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -186,11 +186,12 @@ esp_err_t ll_cam_deinit(cam_obj_t *cam)
186186 esp_intr_free (cam -> dma_intr_handle );
187187 cam -> dma_intr_handle = NULL ;
188188 }
189- gdma_disconnect (cam -> dma_channel_handle );
190- gdma_del_channel (cam -> dma_channel_handle );
191- cam -> dma_channel_handle = NULL ;
192- // GDMA.channel[cam->dma_num].in.link.addr = 0x0;
193-
189+ if (cam -> dma_channel_handle ) {
190+ // gdma_disconnect(cam->dma_channel_handle); // not needed since code never calls gdma_connect() to connect channel to peripheral
191+ gdma_del_channel (cam -> dma_channel_handle );
192+ cam -> dma_channel_handle = NULL ;
193+ // GDMA.channel[cam->dma_num].in.link.addr = 0x0;
194+ }
194195 LCD_CAM .cam_ctrl1 .cam_start = 0 ;
195196 LCD_CAM .cam_ctrl1 .cam_reset = 1 ;
196197 LCD_CAM .cam_ctrl1 .cam_reset = 0 ;
You can’t perform that action at this time.
0 commit comments