diff options
Diffstat (limited to 'keyboards/mt64rgb/keymaps/via/keymap.c')
-rw-r--r-- | keyboards/mt64rgb/keymaps/via/keymap.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/keyboards/mt64rgb/keymaps/via/keymap.c b/keyboards/mt64rgb/keymaps/via/keymap.c index a182e1a6a..7a9a2c144 100644 --- a/keyboards/mt64rgb/keymaps/via/keymap.c +++ b/keyboards/mt64rgb/keymaps/via/keymap.c | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2020 MT<704340378@qq.com> | 1 | /* Copyright 2020 MT<704340378@qq.com> |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
17 | 17 | ||
18 | 18 | ||
@@ -44,8 +44,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_DEC, BL_TOGG, BL_INC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_DEC, BL_TOGG, BL_INC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, |
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), |
46 | }; | 46 | }; |
47 | |||
47 | void rgb_matrix_indicators_user(void) { | 48 | void rgb_matrix_indicators_user(void) { |
48 | if (!g_suspend_state && layer_state_is(1)) { | 49 | if (layer_state_is(1)) { |
49 | rgb_matrix_set_color(77,0xFF, 0x80, 0x00); | 50 | rgb_matrix_set_color(77,0xFF, 0x80, 0x00); |
50 | } | 51 | } |
51 | if (host_keyboard_led_state().caps_lock) { | 52 | if (host_keyboard_led_state().caps_lock) { |