diff options
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/video_capture/src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/device/video_capture/src/main.c b/examples/device/video_capture/src/main.c index 091eb8d0c..2a2b0961f 100644 --- a/examples/device/video_capture/src/main.c +++ b/examples/device/video_capture/src/main.c @@ -193,6 +193,7 @@ void video_send_frame(void) { if (!already_sent) { already_sent = 1; + tx_busy = 1; start_ms = board_millis(); #ifdef CFG_EXAMPLE_VIDEO_READONLY #if defined(CFG_EXAMPLE_VIDEO_DISABLE_MJPEG) @@ -211,6 +212,7 @@ void video_send_frame(void) { if (cur - start_ms < interval_ms) return; // not enough time if (tx_busy) return; start_ms += interval_ms; + tx_busy = 1; #ifdef CFG_EXAMPLE_VIDEO_READONLY #if defined(CFG_EXAMPLE_VIDEO_DISABLE_MJPEG) |
