diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-11-16 10:08:07 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-11-16 10:08:07 -0600 |
commit | 18f49ed922576d2add2d7ad926b33faa83155897 (patch) | |
tree | f2a5bea234c54493070be35dc5847dfb5ce35cb6 /ButtonHandler/ButtonHandler.h | |
parent | 2f9996bac0dd1c0bbacadc0d420a1b3244cd9a76 (diff) | |
download | mtdot-box-evb-factory-firmware-18f49ed922576d2add2d7ad926b33faa83155897.tar.gz mtdot-box-evb-factory-firmware-18f49ed922576d2add2d7ad926b33faa83155897.tar.bz2 mtdot-box-evb-factory-firmware-18f49ed922576d2add2d7ad926b33faa83155897.zip |
put enums inside class scope when possible
Diffstat (limited to 'ButtonHandler/ButtonHandler.h')
-rw-r--r-- | ButtonHandler/ButtonHandler.h | 14 |
1 files changed, 7 insertions, 7 deletions
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(); |