From 254fb0c490c62c0e29518cab2d8b5c90a30b378c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 9 Dec 2014 12:42:20 +0100 Subject: accel: Fix shake gesture detection --- common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index eced70e..e879e92 100644 --- a/common.h +++ b/common.h @@ -44,5 +44,7 @@ enum { void shutdownError (); +#define sign(x) ((x < 0) ? -1 : 1) + #endif /* COMMON_H */ -- cgit v1.2.3