aboutsummaryrefslogtreecommitdiff
path: root/accel.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-01-29 11:29:43 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-01-29 11:29:43 +0100
commit708e9eb417ddf41ec345f2be70c4a32721608e4c (patch)
treed33c3c341f4a0aeac3966be3c6e1ca27eb94a7bc /accel.h
parentaf4ea653a341f3c25cfbb2e7ec4b633bf73913a7 (diff)
downloadhourglass-708e9eb417ddf41ec345f2be70c4a32721608e4c.tar.gz
hourglass-708e9eb417ddf41ec345f2be70c4a32721608e4c.tar.bz2
hourglass-708e9eb417ddf41ec345f2be70c4a32721608e4c.zip
Replace enums with uint8_t
Saves a few bytes, since enums are 16 bit
Diffstat (limited to 'accel.h')
-rw-r--r--accel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/accel.h b/accel.h
index b984fdd..129611c 100644
--- a/accel.h
+++ b/accel.h
@@ -4,7 +4,11 @@
#include <stdbool.h>
#include <stdint.h>
-typedef enum {HORIZON_NONE, HORIZON_POS, HORIZON_NEG} horizon;
+#define HORIZON_NONE 0
+#define HORIZON_POS 1
+#define HORIZON_NEG 2
+
+typedef uint8_t horizon;
void accelInit ();
void accelStart ();