Skip to content

Commit

Permalink
Merge pull request #421 from ligenxxxx/sleep-10-ms-before-dvr-start
Browse files Browse the repository at this point in the history
sleep 10ms before rec start
  • Loading branch information
ligenxxxx authored Jun 19, 2024
2 parents f6d85da + 2eb77a1 commit d33e8eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/dvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ void dvr_cmd(osd_dvr_cmd_t cmd) {
if (!dvr_is_recording && g_sdcard_size >= 103) {
dvr_update_record_conf();
dvr_is_recording = true;
usleep(10 * 1000);
system_script(REC_START);
sleep(2); // wait for record process
}
Expand Down

0 comments on commit d33e8eb

Please sign in to comment.