From 695304c43f4e468eef24eb23920d148044dc15eb Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 1 Mar 2022 22:35:16 +0200 Subject: utils: rkisp1: Remove frames before starting capture Delete frames previously captured before starting a new capture, to avoid mixing old and new frames. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/rkisp1') diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index 4d09f5d5..d5ebe5b1 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -88,6 +88,7 @@ capture_frames() { if [[ $save_file -eq 1 ]]; then file_op="--file=/tmp/frame-#.bin" + rm -f /tmp/frame-*.bin fi yavta -c$frame_count -n5 -I -f $capture_format -s $capture_size \ -- cgit v1.2.1