aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidister <git@vidister.de>2017-07-04 23:22:50 +0200
committerVidister <git@vidister.de>2017-07-04 23:22:50 +0200
commit7082fe8c97faaf6cc4789fb9f66fd4a1c716979e (patch)
tree93a88c209b54d98c065521416811eaeff8b02d89
parentf090d7a2685966c7566c24307f89e7674164ec2a (diff)
downloadcccb-klingel-7082fe8c97faaf6cc4789fb9f66fd4a1c716979e.tar.gz
cccb-klingel-7082fe8c97faaf6cc4789fb9f66fd4a1c716979e.tar.bz2
cccb-klingel-7082fe8c97faaf6cc4789fb9f66fd4a1c716979e.zip
(hopefully) fix false positives
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 38ff79f..58f633d 100644
--- a/main.c
+++ b/main.c
@@ -7,11 +7,11 @@
#define HZ 15625ULL
#define TIMEOUT_SEC 4
-#define MIN_PULSE_WIDTH_MS 10
-#define RING_DURATION_SEC 20
-#define OPEN_DURATION_SEC 3
-#define THURSDAY_TIMEOUT_MIN 300UL
-#define THURSDAY_OPEN_DELAY 750UL
+#define MIN_PULSE_WIDTH_MS 25
+#define RING_DURATION_SEC 20 // Time the lamp lights up
+#define OPEN_DURATION_SEC 4 // Door open duration
+#define THURSDAY_TIMEOUT_MIN 420UL // Minutes till Thursday is disabled
+#define THURSDAY_OPEN_DELAY 750UL // Time till the door is opened when the doorbell is pressed
#define PRESSED_MIN_MS 50UL
#define RELEASED_MIN_MS 50UL