From 18f49ed922576d2add2d7ad926b33faa83155897 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Mon, 16 Nov 2015 10:08:07 -0600 Subject: put enums inside class scope when possible --- ButtonHandler/ButtonHandler.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ButtonHandler/ButtonHandler.h') diff --git a/ButtonHandler/ButtonHandler.h b/ButtonHandler/ButtonHandler.h index 57f768d..00898c6 100644 --- a/ButtonHandler/ButtonHandler.h +++ b/ButtonHandler/ButtonHandler.h @@ -6,15 +6,15 @@ #define buttonSignal (uint32_t)0x01 -typedef enum { - none = 0, - sw1_press, - sw1_hold, - sw2_press -} ButtonEvent; - class ButtonHandler { public: + typedef enum { + none = 0, + sw1_press, + sw1_hold, + sw2_press + } ButtonEvent; + ButtonHandler(osThreadId main); ~ButtonHandler(); -- cgit v1.2.3