Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds esp_camera_return_all() #519

Merged
merged 1 commit into from
Apr 20, 2023
Merged

Adds esp_camera_return_all() #519

merged 1 commit into from
Apr 20, 2023

Conversation

wouterdebie
Copy link
Contributor

I had a case where I needed to return all framebuffers, so I added this functionality.

driver/cam_hal.c Outdated
@@ -506,3 +506,9 @@ void cam_give(camera_fb_t *dma_buffer)
}
}
}

void cam_give_all(void) {
for (int x = 0; x < cam_obj-frame_cnt; x++) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here. Should be cam_obj->frame_cnt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Fixed.

@me-no-dev me-no-dev merged commit 1cb6af8 into espressif:master Apr 20, 2023
@me-no-dev
Copy link
Member

Thanks @wouterdebie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants