From 708e9eb417ddf41ec345f2be70c4a32721608e4c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 29 Jan 2015 11:29:43 +0100 Subject: Replace enums with uint8_t Saves a few bytes, since enums are 16 bit --- accel.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'accel.h') diff --git a/accel.h b/accel.h index b984fdd..129611c 100644 --- a/accel.h +++ b/accel.h @@ -4,7 +4,11 @@ #include #include -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 (); -- cgit v1.2.3