Skip to content

Commit

Permalink
Make it trigger on >= threshold instead of > threshold, so that setti…
Browse files Browse the repository at this point in the history
…ng threshold to zero means keel all
  • Loading branch information
Matthias-Wandel committed Mar 27, 2021
1 parent c0d7d73 commit 942ef09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int ProcessImage(LastPic_t * New, int DeleteProcessed)
SinceMotionMs = 0;
}

if (LastPics[0].DiffMag > Sensitivity){
if (LastPics[0].DiffMag >= Sensitivity){
LastPics[0].IsMotion = 1;
}

Expand Down Expand Up @@ -178,7 +178,7 @@ static int ProcessImage(LastPic_t * New, int DeleteProcessed)
SinceMotionPix += 1;


if (Trig.DiffLevel > Sensitivity && UdpDest[0]){
if (Trig.DiffLevel >= Sensitivity && UdpDest[0]){
// For my cap shooter experiment. Not useful for anything else.
char showx[1001];
int xs, a;
Expand Down

0 comments on commit 942ef09

Please sign in to comment.