From baff9933bb21440df0cd78dbf65d794e793d7e4b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 15 Dec 2014 13:00:48 +0100 Subject: ui: Reduce required shake count to 1 Gesture detection has been fixed with commit 254fb0c490c62c0e29518cab2d8b5c90a30b378c, one shake now actually sets the counter to one. --- ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index a387c17..b08ee41 100644 --- a/ui.c +++ b/ui.c @@ -128,7 +128,7 @@ static void setFine (const int8_t value) { /* Coarse timer setting, selects from 0 to 60 minutes, in 10 min steps */ static void doSelectCoarse () { - if (accelGetShakeCount () >= 2) { + if (accelGetShakeCount () >= 1) { /* selection */ accelResetShakeCount (); mode = UIMODE_SELECT_FINE; @@ -158,7 +158,7 @@ static void doSelectCoarse () { /* Fine timer setting, selects from -5 to 5 minutes, in 1 min steps */ static void doSelectFine () { - if (accelGetShakeCount () >= 2) { + if (accelGetShakeCount () >= 1) { /* stop selection */ accelResetShakeCount (); speakerStart (SPEAKER_BEEP); @@ -205,7 +205,7 @@ static void doIdle () { timerStart (brightnessStep); puts ("idle->run"); speakerStart (SPEAKER_BEEP); - } else if (accelGetShakeCount () >= 2) { + } else if (accelGetShakeCount () >= 1) { /* set timer */ accelResetShakeCount (); gyroStart (); -- cgit v1.2.3