From e7f4a21caed656ca65fc615655f6d59b5cd4a788 Mon Sep 17 00:00:00 2001 From: Mr-Dave Date: Wed, 5 Jun 2024 18:19:03 -0600 Subject: [PATCH] Revise criteria on shot counter. Closes #153 --- src/motion_loop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motion_loop.cpp b/src/motion_loop.cpp index 244097d4..b68e5e97 100644 --- a/src/motion_loop.cpp +++ b/src/motion_loop.cpp @@ -133,7 +133,7 @@ static void mlp_ring_process(ctx_dev *cam) cam->current_image = &cam->imgs.image_ring[cam->imgs.ring_out]; - if (cam->current_image->shot < cam->conf->framerate) { + if (cam->current_image->shot <= cam->conf->framerate) { if (cam->motapp->conf->log_level >= DBG) { mlp_ring_process_debug(cam); } @@ -254,7 +254,7 @@ static void mlp_detected(ctx_dev *cam) mlp_detected_trigger(cam); - if (cam->current_image->shot < conf->framerate) { + if (cam->current_image->shot <= conf->framerate) { if ((conf->stream_motion == true) && (cam->motapp->conf->setup_mode == false) && (cam->current_image->shot != 1)) {