From 220654876ac565ee926ed7fc0021a814a9404ffe Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Tue, 8 Aug 2017 17:30:08 -0700 Subject: [PATCH] Convert the abbreviationLen member of keymap_reference_t to uint8_t --- right/src/keymaps.c | 2 +- right/src/keymaps.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/right/src/keymaps.c b/right/src/keymaps.c index 5653851..0aded45 100644 --- a/right/src/keymaps.c +++ b/right/src/keymaps.c @@ -7,7 +7,7 @@ // TODO: Restore Ctrl and Super keys and Mod+N. -keymap_reference_t AllKeymaps[MAX_KEYMAP_NUM] = { { "QTY", 3 } }; +keymap_reference_t AllKeymaps[MAX_KEYMAP_NUM] = { { "QTY", 0, 3 } }; uint8_t AllKeymapsCount; uint8_t DefaultKeymapIndex; uint8_t CurrentKeymapIndex = 0; diff --git a/right/src/keymaps.h b/right/src/keymaps.h index 6675c87..2b23958 100644 --- a/right/src/keymaps.h +++ b/right/src/keymaps.h @@ -14,8 +14,8 @@ typedef struct { const char *abbreviation; - uint16_t abbreviationLen; uint16_t offset; + uint8_t abbreviationLen; } keymap_reference_t; // Variables: