diff options
author | Drashna Jaelre <drashna@live.com> | 2019-05-17 15:21:45 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-17 15:21:45 -0700 |
commit | 89e9785d7a87e8dbb941dd272c032f34658169fd (patch) | |
tree | 75bb6eb561b9188aa031e0c4aee3de46afde45f7 /users/drashna/drashna.c | |
parent | 356521864e9f49d50131f4779ff9e56dc8b12e8f (diff) | |
download | qmk_firmware-89e9785d7a87e8dbb941dd272c032f34658169fd.tar.gz qmk_firmware-89e9785d7a87e8dbb941dd272c032f34658169fd.zip |
Update my code to use layer_state_t typedef
Diffstat (limited to 'users/drashna/drashna.c')
-rw-r--r-- | users/drashna/drashna.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 7c60a2e4a5..acc6b9f9ed 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c @@ -187,13 +187,13 @@ void matrix_scan_user(void) { __attribute__ ((weak)) -uint32_t layer_state_set_keymap (uint32_t state) { +layer_state_t layer_state_set_keymap (layer_state_t state) { return state; } // on layer change, no matter where the change was initiated // Then runs keymap's layer change check -uint32_t layer_state_set_user(uint32_t state) { +layer_state_t layer_state_set_user(layer_state_t state) { state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST); #ifdef RGBLIGHT_ENABLE state = layer_state_set_rgb(state); @@ -203,12 +203,12 @@ uint32_t layer_state_set_user(uint32_t state) { __attribute__ ((weak)) -uint32_t default_layer_state_set_keymap (uint32_t state) { +layer_state_t default_layer_state_set_keymap (layer_state_t state) { return state; } // Runs state check and changes underglow color and animation -uint32_t default_layer_state_set_user(uint32_t state) { +layer_state_t default_layer_state_set_user(layer_state_t state) { state = default_layer_state_set_keymap(state); #if 0 #ifdef RGBLIGHT_ENABLE |