aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mt84
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mt84')
-rw-r--r--keyboards/mt84/keymaps/default/keymap.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/keyboards/mt84/keymaps/default/keymap.c b/keyboards/mt84/keymaps/default/keymap.c
index fc8481da9..bb7d5b447 100644
--- a/keyboards/mt84/keymaps/default/keymap.c
+++ b/keyboards/mt84/keymaps/default/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,12 +44,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 44
45void rgb_matrix_indicators_user(void) { 45void rgb_matrix_indicators_user(void) {
46 led_t led_state = host_keyboard_led_state(); 46 led_t led_state = host_keyboard_led_state();
47 if (!g_suspend_state) {
48 switch (get_highest_layer(layer_state)) { 47 switch (get_highest_layer(layer_state)) {
49 case _FN: 48 case _FN:
50 rgb_matrix_set_color(77,0xFF, 0x80, 0x00); 49 rgb_matrix_set_color(77,0xFF, 0x80, 0x00);
51 break; 50 break;
52 }
53 } 51 }
54 if (led_state.caps_lock) { 52 if (led_state.caps_lock) {
55 rgb_matrix_set_color(46, 0xFF, 0xFF, 0xFF); 53 rgb_matrix_set_color(46, 0xFF, 0xFF, 0xFF);