Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

set default motion value to a correct amount

n8fr88ff99eba60b0
diff --git a/src/main/java/org/havenapp/main/sensors/motion/LuminanceMotionDetector.java b/src/main/java/org/havenapp/main/sensors/motion/LuminanceMotionDetector.java
index 5b2cd60..9776a52 100644
--- a/src/main/java/org/havenapp/main/sensors/motion/LuminanceMotionDetector.java
+++ b/src/main/java/org/havenapp/main/sensors/motion/LuminanceMotionDetector.java
@@ -24,10 +24,8 @@ public class LuminanceMotionDetector implements IMotionDetector {
/**
* Levels of motion detection
*/
- public static final int MOTION_LOW = 0;
- public static final int MOTION_MEDIUM = 1;
- public static final int MOTION_HIGH = 2;
-
+ public static final int MOTION_MEDIUM = 30000;
+
/**
* Sets different sensitivity for the algorithm
* @param thresh sensitivity identifier