Skip to content

Commit 49a6434

Browse files
authored
v10.8.5
1 parent eb9f3d5 commit 49a6434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mjpeg2sd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ static void openAvi() {
144144

145145
static inline bool doMonitor(bool capturing) {
146146
// monitor incoming frames for motion
147-
static uint8_t motionCnt = 0;
147+
static uint16_t motionCnt = 0;
148148
// ratio for monitoring stop during capture / movement prior to capture
149-
uint8_t checkRate = (capturing) ? FPS * moveStopSecs : FPS / moveStartChecks;
149+
uint16_t checkRate = (capturing) ? FPS * moveStopSecs : FPS / moveStartChecks;
150150
if (!checkRate) checkRate = 1;
151151
if (++motionCnt / checkRate) motionCnt = 0; // time to check for motion
152152
return !(bool)motionCnt;

0 commit comments

Comments
 (0)