diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-01-04 20:14:10 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-05 15:14:10 +1100 |
| commit | 375ef0b8c3e13b9d60de2cb79ef2a54215388792 (patch) | |
| tree | e5a21960b439de25679670b2b39323289751fd19 /keyboards/kingly_keys | |
| parent | f03b10b6c1c9a5b0e07f7f78c6060610246b4a7f (diff) | |
| download | qmk_firmware-375ef0b8c3e13b9d60de2cb79ef2a54215388792.tar.gz qmk_firmware-375ef0b8c3e13b9d60de2cb79ef2a54215388792.zip | |
[Keyboard] Fix compiler errors for Kingly Key boards (#11100)
Diffstat (limited to 'keyboards/kingly_keys')
| -rw-r--r-- | keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c | 47 | ||||
| -rw-r--r-- | keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c | 47 |
2 files changed, 45 insertions, 49 deletions
diff --git a/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c b/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c index 4e195d43b..2074c7386 100644 --- a/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c +++ b/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2020 Garret Gartner | 2 | Copyright 2020 Garret Gartner |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation, either version 2 of the License, or | 6 | the Free Software Foundation, either version 2 of the License, or |
| 7 | (at your option) any later version. | 7 | (at your option) any later version. |
| 8 | 8 | ||
| 9 | This program is distributed in the hope that it will be useful, | 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. | 12 | GNU General Public License for more details. |
| 13 | 13 | ||
| 14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include QMK_KEYBOARD_H | 18 | #include QMK_KEYBOARD_H |
| 19 | 19 | ||
| @@ -159,7 +159,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 159 | 159 | ||
| 160 | 160 | ||
| 161 | // KEYMAP TEMPLATE: | 161 | // KEYMAP TEMPLATE: |
| 162 | // | 162 | // |
| 163 | // /* <_LAYER>: | 163 | // /* <_LAYER>: |
| 164 | // * | 164 | // * |
| 165 | // * ┌────┐ ┌────┐ ┌────┬────┬────┐ | 165 | // * ┌────┐ ┌────┐ ┌────┬────┬────┐ |
| @@ -185,16 +185,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 185 | 185 | ||
| 186 | 186 | ||
| 187 | // Per-Key Tapping Term Definitions: | 187 | // Per-Key Tapping Term Definitions: |
| 188 | uint16_t get_tapping_term(uint16_t keycode) { | 188 | uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { |
| 189 | switch (keycode) { | 189 | switch (keycode) { |
| 190 | case TD(TD_DBQT): | 190 | case TD(TD_DBQT): |
| 191 | return 235; | 191 | return 235; |
| 192 | default: | 192 | default: |
| 193 | return TAPPING_TERM; | 193 | return TAPPING_TERM; |
| 194 | } | 194 | } |
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | |||
| 198 | // Encoder Customization: (*Order-of-Keycode Specific) | 197 | // Encoder Customization: (*Order-of-Keycode Specific) |
| 199 | void encoder_update_user(uint8_t index, bool clockwise) { | 198 | void encoder_update_user(uint8_t index, bool clockwise) { |
| 200 | if (index == 0) { | 199 | if (index == 0) { |
diff --git a/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c b/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c index 16f469b53..8607c8e4e 100644 --- a/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c +++ b/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2020 Garret Gartner | 2 | Copyright 2020 Garret Gartner |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation, either version 2 of the License, or | 6 | the Free Software Foundation, either version 2 of the License, or |
| 7 | (at your option) any later version. | 7 | (at your option) any later version. |
| 8 | 8 | ||
| 9 | This program is distributed in the hope that it will be useful, | 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. | 12 | GNU General Public License for more details. |
| 13 | 13 | ||
| 14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include QMK_KEYBOARD_H | 18 | #include QMK_KEYBOARD_H |
| 19 | 19 | ||
| @@ -184,19 +184,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 184 | // ) | 184 | // ) |
| 185 | 185 | ||
| 186 | 186 | ||
| 187 | |||
| 188 | // Per-Key Tapping Term Definitions: | 187 | // Per-Key Tapping Term Definitions: |
| 189 | uint16_t get_tapping_term(uint16_t keycode) { | 188 | uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { |
| 190 | switch (keycode) { | 189 | switch (keycode) { |
| 191 | case TD(TD_DBQT): | 190 | case TD(TD_DBQT): |
| 192 | return 235; | 191 | return 235; |
| 193 | default: | 192 | default: |
| 194 | return TAPPING_TERM; | 193 | return TAPPING_TERM; |
| 195 | } | 194 | } |
| 196 | } | 195 | } |
| 197 | 196 | ||
| 198 | |||
| 199 | |||
| 200 | // Encoder Customization: (*Order-of-Keycode Specific) | 197 | // Encoder Customization: (*Order-of-Keycode Specific) |
| 201 | void encoder_update_user(uint8_t index, bool clockwise) { | 198 | void encoder_update_user(uint8_t index, bool clockwise) { |
| 202 | if (index == 0) { | 199 | if (index == 0) { |
