We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c40d7 commit 1af43c7Copy full SHA for 1af43c7
shared-module/uvc/__init__.c
@@ -172,8 +172,11 @@ STATIC void uvc_cb_fun(void *unused) {
172
(void)result;
173
}
174
175
+
176
void usb_uvc_task(void) {
- background_callback_add(&uvc_cb, uvc_cb_fun, NULL);
177
+ if (uvc_is_enabled) {
178
+ background_callback_add(&uvc_cb, uvc_cb_fun, NULL);
179
+ }
180
181
182
void tud_video_frame_xfer_complete_cb(uint_fast8_t ctl_idx, uint_fast8_t stm_idx) {
0 commit comments