summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkkitayam <[email protected]>2021-09-25 16:59:17 +0900
committerkkitayam <[email protected]>2021-09-29 21:23:17 +0900
commitd88cc23ca5eced51167edad00ea43c86038ee481 (patch)
tree476b7567dc0445a22e25619efea10ce666c35ad0 /examples
parenta978828c3abdf864f9806cec6aa73a36f9209cc3 (diff)
Refactor packet handling
Diffstat (limited to 'examples')
-rw-r--r--examples/device/video_capture/src/main.c4
1 files changed, 2 insertions, 2 deletions
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;