aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-10-18 22:35:48 +0200
committerjaseg <code@jaseg.net>2016-10-18 22:35:48 +0200
commitb2bcc1125677d59918d91377669db377d12fa0f6 (patch)
tree8341289b6fa93ba826602bf8e1f373f9b548c1d4
parent3b03fda10b1f339b9ff2572c8d1c9e1c4b8f9f98 (diff)
downloadcccb-klingel-b2bcc1125677d59918d91377669db377d12fa0f6.tar.gz
cccb-klingel-b2bcc1125677d59918d91377669db377d12fa0f6.tar.bz2
cccb-klingel-b2bcc1125677d59918d91377669db377d12fa0f6.zip
Thursday mode open foo fixed
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0247056..38ff79f 100644
--- a/main.c
+++ b/main.c
@@ -11,6 +11,7 @@
#define RING_DURATION_SEC 20
#define OPEN_DURATION_SEC 3
#define THURSDAY_TIMEOUT_MIN 300UL
+#define THURSDAY_OPEN_DELAY 750UL
#define PRESSED_MIN_MS 50UL
#define RELEASED_MIN_MS 50UL
@@ -172,6 +173,7 @@ int main(void) {
uint8_t st = PINC&1;
if (global_thursday_mode && !st) {
tx_str(PSTR("THUA Thursday mode auto open\r\n"));
+ _delay_ms(THURSDAY_OPEN_DELAY);
open();
} else if (st == (pidx&1)) {
uint16_t val = TCNT1;