diff options
author | Drashna Jaelre <drashna@live.com> | 2019-05-19 16:07:49 -0700 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-07-27 11:25:58 +0900 |
commit | 04eb1226b926a0da04f3cd2df799c303773cb054 (patch) | |
tree | 4b3095acfe533a0ccf30e3282b09db46f5f065b4 | |
parent | a393d4d43e879a0238f224732577a70a26ebe912 (diff) |
Use Layer State Typedef in keymaps
-rw-r--r-- | keyboards/ergodox_ez/keymaps/default/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/planck/ez/ez.c | 2 | ||||
-rw-r--r-- | keyboards/planck/keymaps/default/keymap.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c index 40d0a1eaf0..6f438d0d50 100644 --- a/keyboards/ergodox_ez/keymaps/default/keymap.c +++ b/keyboards/ergodox_ez/keymaps/default/keymap.c @@ -164,7 +164,7 @@ void matrix_init_user(void) { }; // Runs whenever there is a layer state change. -uint32_t layer_state_set_user(uint32_t state) { +layer_state_t layer_state_set_user(layer_state_t state) { ergodox_board_led_off(); ergodox_right_led_1_off(); ergodox_right_led_2_off(); diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index 8ff3c203f8..a6995533c9 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -128,7 +128,7 @@ void matrix_scan_kb(void) { matrix_scan_user(); } -uint32_t layer_state_set_kb(uint32_t state) { +layer_state_t layer_state_set_kb(layer_state_t state) { palClearPad(GPIOB, 8); palClearPad(GPIOB, 9); diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c index 03cc0049e4..05507602aa 100644 --- a/keyboards/planck/keymaps/default/keymap.c +++ b/keyboards/planck/keymaps/default/keymap.c @@ -176,7 +176,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND); #endif -uint32_t layer_state_set_user(uint32_t state) { +layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); } |