Convert key_state_t to a bit field

This commit is contained in:
Eric Tang
2018-07-05 11:50:13 -07:00
parent 014addd777
commit 9ba09ec8eb
2 changed files with 4 additions and 4 deletions

View File

@@ -10,10 +10,10 @@
// Typedefs:
typedef struct {
bool previous;
bool current;
bool suppressed;
uint8_t debounceCounter;
bool previous : 1;
bool current : 1;
bool suppressed : 1;
} key_state_t;
// Variables: