From: Martin Mares Date: Sun, 15 Jul 2018 09:52:25 +0000 (+0200) Subject: Sphinx: Adjusted timing X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9761c64244c287941701327949f7087bd3ed2bb4;p=misc.git Sphinx: Adjusted timing --- diff --git a/sphinx/sphinx.c b/sphinx/sphinx.c index 5f3e3f2..a549472 100644 --- a/sphinx/sphinx.c +++ b/sphinx/sphinx.c @@ -44,10 +44,10 @@ static byte debounce; #define DEBOUNCE_THRESHOLD 3 static byte pressed; static u16 press_timer; -#define LONG_PRESS 500 +#define LONG_PRESS 150 static byte second_timer; static byte unlocked; -#define UNLOCK_SECONDS 20 +#define UNLOCK_SECONDS 60 ISR(TIM0_COMPA_vect) {