mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-14 09:39:50 +00:00
add "set tx_busy 1" into video_capture's video_tas for "if (tx_busy) return"
This commit is contained in:
parent
19130440cc
commit
4c9f462423
@ -185,6 +185,7 @@ void video_task(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)
|
||||
@ -203,6 +204,7 @@ void video_task(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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user