From 2d760eb50ab5b636aa49d860a285ce6382e6544b Mon Sep 17 00:00:00 2001 From: monkfoffunk Date: Sat, 23 Oct 2021 21:52:43 +0900 Subject: [PATCH] Change uint32_t to layer_state_t [Bug] Develop - Change uint32_t to layer_state_t #13596 --- keyboards/25keys/attack25/rev1/rev1.c | 2 +- keyboards/25keys/attack25/rev3/rev3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/25keys/attack25/rev1/rev1.c b/keyboards/25keys/attack25/rev1/rev1.c index 851f8983a27a..d7c1e95f83b4 100644 --- a/keyboards/25keys/attack25/rev1/rev1.c +++ b/keyboards/25keys/attack25/rev1/rev1.c @@ -344,7 +344,7 @@ void rgb_matrix_indicators_kb(void) { } } #elif RGBLIGHT_ENABLE -layer_state_t layer_state_set_kb(uint32_t state) { +layer_state_t layer_state_set_kb(layer_state_t state) { if (user_config.mac_mode) { rgblight_set_layer_state(0, layer_state_cmp(state | default_layer_state, _NUMOFF)); } diff --git a/keyboards/25keys/attack25/rev3/rev3.c b/keyboards/25keys/attack25/rev3/rev3.c index d83318b2eca5..16471b6e8a01 100644 --- a/keyboards/25keys/attack25/rev3/rev3.c +++ b/keyboards/25keys/attack25/rev3/rev3.c @@ -185,7 +185,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { } #ifdef RGBLIGHT_ENABLE -layer_state_t layer_state_set_kb(uint32_t state) { +layer_state_t layer_state_set_kb(layer_state_set_kb state) { dprintf("layer_state %08lX(%u)\n", layer_state, get_highest_layer(layer_state)); dprintf("default_layer_state %08lX(%u)\n", default_layer_state, get_highest_layer(default_layer_state));