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 --- pwm.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pwm.h') diff --git a/pwm.h b/pwm.h index c5075ef..8ca7b51 100644 --- a/pwm.h +++ b/pwm.h @@ -8,9 +8,8 @@ void pwmStop (); void pwmSet (const uint8_t, const uint8_t); void pwmSetOff (); -typedef enum { - SPEAKER_BEEP, -} speakerMode; +typedef uint8_t speakerMode; +#define SPEAKER_BEEP 0 void speakerStart (const speakerMode); -- cgit v1.2.3