diff options
-rw-r--r-- | ui.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -257,8 +257,7 @@ static void doAlarm () { */ static void doInit () { /* get initial orientation */ - h = accelGetHorizon (); - if (h != HORIZON_NONE) { + if (horizonChanged && h != HORIZON_NONE) { puts ("init->idle"); enterIdle (); |