summaryrefslogtreecommitdiffstats
path: root/keyboards/crkbd/keymaps/thunderbird2086/keymap.c
diff options
context:
space:
mode:
authorAllen Choi <37539914+Thunderbird2086@users.noreply.github.com>2023-06-11 04:35:15 +0800
committerGitHub <noreply@github.com>2023-06-10 14:35:15 -0600
commit57b23b8d968695e98e7738ab8f563124b87545fb (patch)
tree8227b6949cbff3ad2cd3804891901841cb30ab45 /keyboards/crkbd/keymaps/thunderbird2086/keymap.c
parenteee9a53a803dbcd2bc265a082c67afe0324371fc (diff)
[Keymap] thunderbird2086 layer status with RGB lighting/matrix (#21063)
Diffstat (limited to 'keyboards/crkbd/keymaps/thunderbird2086/keymap.c')
-rw-r--r--keyboards/crkbd/keymaps/thunderbird2086/keymap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/thunderbird2086/keymap.c b/keyboards/crkbd/keymaps/thunderbird2086/keymap.c
index 7bc23db8aa..69c5d25fd4 100644
--- a/keyboards/crkbd/keymaps/thunderbird2086/keymap.c
+++ b/keyboards/crkbd/keymaps/thunderbird2086/keymap.c
@@ -80,6 +80,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// clang-format off
+#if defined(RGBLIGHT_ENABLE)
+__attribute__((weak))
+void set_rgb_by_layer(layer_state_t state) {
+ return;
+}
+#endif
+
layer_state_t layer_state_set_user(layer_state_t state) {
+# if defined(RGBLIGHT_ENABLE)
+ set_rgb_by_layer(state);
+# endif
return update_tri_layer_state(state, _FUNCTION, _ADJUST, _SECRET);
}