From d88cc23ca5eced51167edad00ea43c86038ee481 Mon Sep 17 00:00:00 2001 From: kkitayam <45088311+kkitayam@users.noreply.github.com> Date: Sat, 25 Sep 2021 16:59:17 +0900 Subject: Refactor packet handling --- examples/device/video_capture/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/device/video_capture/src/main.c b/examples/device/video_capture/src/main.c index ce4272639..4ca0e5d90 100644 --- a/examples/device/video_capture/src/main.c +++ b/examples/device/video_capture/src/main.c @@ -141,10 +141,10 @@ void video_task(void) } } -int tud_video_frame_xfer_complete_cb(void) +int tud_video_frame_xfer_complete_cb(unsigned itf) { /* prepare tx */ - tud_video_n_frame_xfer(0, 0, (void*)frames[current_frame], 128 * 96 * 12/8); + tud_video_n_frame_xfer(itf, 0, (void*)frames[current_frame], 128 * 96 * 12/8); ++current_frame; if (current_frame == sizeof(frames)/sizeof(frames[0])) current_frame = 0; -- cgit v1.3.1