We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba7807 commit ab58d32Copy full SHA for ab58d32
1 file changed
src/motion.c
@@ -1071,7 +1071,10 @@ static int motion_init(struct context *cnt)
1071
cnt->imgs.height_high = 0;
1072
cnt->imgs.size_high = 0;
1073
cnt->movie_passthrough = cnt->conf.movie_passthrough;
1074
- cnt->pause = cnt->conf.pause;
+ /* Pause may have been set via command line. If so, keep that value*/
1075
+ if (cnt->pause == 0) {
1076
+ cnt->pause = cnt->conf.pause;
1077
+ }
1078
1079
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO
1080
,_("Camera %d started: motion detection %s"),
0 commit comments