From 9ba09ec8ebb21778318316c19611ced9856e44b8 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Thu, 5 Jul 2018 11:50:13 -0700 Subject: [PATCH] Convert key_state_t to a bit field --- lib/agent | 2 +- right/src/key_states.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/agent b/lib/agent index 15df8d7..32d9635 160000 --- a/lib/agent +++ b/lib/agent @@ -1 +1 @@ -Subproject commit 15df8d71299e0547d953874d1a8d21e9147a396f +Subproject commit 32d9635b340e4dfbb12fdcfc909ec89e488ce56a diff --git a/right/src/key_states.h b/right/src/key_states.h index 847aa24..9f48304 100644 --- a/right/src/key_states.h +++ b/right/src/key_states.h @@ -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: