From b2bcc1125677d59918d91377669db377d12fa0f6 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 18 Oct 2016 22:35:48 +0200 Subject: Thursday mode open foo fixed --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit