From fe97a8eba049c6625ed2668d92a0b215ba077f01 Mon Sep 17 00:00:00 2001 From: di0ib Date: Sat, 17 Sep 2016 08:22:27 -1000 Subject: [PATCH] cleanup spacing --- keyboard/gnap/keymap_common.h | 16 ++++++++-------- keyboard/gnap/keymap_gnap.c | 30 +++++++++++++----------------- tmk_core/common/keyboard.c | 2 +- 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/keyboard/gnap/keymap_common.h b/keyboard/gnap/keymap_common.h index 317ce33a..c61dba8b 100644 --- a/keyboard/gnap/keymap_common.h +++ b/keyboard/gnap/keymap_common.h @@ -34,16 +34,16 @@ void gnaplight_toggle(void); void gnaplight_step(void); #define KEYMAP( \ - k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ - k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ - k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ - k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \ + k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ + k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ + k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ + k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \ ) \ { \ - { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ - { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ - { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ - { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \ + { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ + { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ + { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ + { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \ } #endif diff --git a/keyboard/gnap/keymap_gnap.c b/keyboard/gnap/keymap_gnap.c index 1c7431a9..ecf4d514 100644 --- a/keyboard/gnap/keymap_gnap.c +++ b/keyboard/gnap/keymap_gnap.c @@ -55,23 +55,19 @@ const action_t PROGMEM fn_actions[] = { [2] = ACTION_LAYER_TAP_KEY(3, KC_TAB), [3] = ACTION_FUNCTION(GNAPLED_TOGGLE), [4] = ACTION_FUNCTION(GNAPLED_STEP_MODE), - [5] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV), - [6] = ACTION_MODS_KEY(MOD_LSFT, KC_1), - [7] = ACTION_MODS_KEY(MOD_LSFT, KC_2), - [8] = ACTION_MODS_KEY(MOD_LSFT, KC_3), - [9] = ACTION_MODS_KEY(MOD_LSFT, KC_4), - [10] = ACTION_MODS_KEY(MOD_LSFT, KC_5), - [11] = ACTION_MODS_KEY(MOD_LSFT, KC_6), - [12] = ACTION_MODS_KEY(MOD_LSFT, KC_7), - [13] = ACTION_MODS_KEY(MOD_LSFT, KC_8), - [14] = ACTION_MODS_KEY(MOD_LSFT, KC_9), - [15] = ACTION_MODS_KEY(MOD_LSFT, KC_0), + [5] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV), + [6] = ACTION_MODS_KEY(MOD_LSFT, KC_1), + [7] = ACTION_MODS_KEY(MOD_LSFT, KC_2), + [8] = ACTION_MODS_KEY(MOD_LSFT, KC_3), + [9] = ACTION_MODS_KEY(MOD_LSFT, KC_4), + [10] = ACTION_MODS_KEY(MOD_LSFT, KC_5), + [11] = ACTION_MODS_KEY(MOD_LSFT, KC_6), + [12] = ACTION_MODS_KEY(MOD_LSFT, KC_7), + [13] = ACTION_MODS_KEY(MOD_LSFT, KC_8), + [14] = ACTION_MODS_KEY(MOD_LSFT, KC_9), + [15] = ACTION_MODS_KEY(MOD_LSFT, KC_0), }; -void matrix_init_user(void) { - -} - void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { switch (id) { case GNAPLED_TOGGLE: @@ -89,9 +85,9 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { //GNAP keymap functions void gnaplight_step(void) { - serial_send(101); + serial_send(101); } void gnaplight_toggle(void) { - serial_send(100); + serial_send(100); } diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index 8ad896e2..adbe019a 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c @@ -142,7 +142,7 @@ void keyboard_task(void) // record a processed key matrix_prev[r] ^= ((matrix_row_t)1<