summaryrefslogtreecommitdiff
path: root/keyboards/kingly_keys/ave
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-01-04 20:14:10 -0800
committerGitHub <noreply@github.com>2021-01-05 15:14:10 +1100
commit375ef0b8c3e13b9d60de2cb79ef2a54215388792 (patch)
treee5a21960b439de25679670b2b39323289751fd19 /keyboards/kingly_keys/ave
parentf03b10b6c1c9a5b0e07f7f78c6060610246b4a7f (diff)
[Keyboard] Fix compiler errors for Kingly Key boards (#11100)
Diffstat (limited to 'keyboards/kingly_keys/ave')
-rw-r--r--keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c47
-rw-r--r--keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c47
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 4e195d43bb..2074c73860 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 @@
- /*
+ /*
Copyright 2020 Garret Gartner
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#include QMK_KEYBOARD_H
@@ -159,7 +159,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// KEYMAP TEMPLATE:
-//
+//
// /* <_LAYER>:
// *
// * ┌────┐ ┌────┐ ┌────┬────┬────┐
@@ -185,16 +185,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Per-Key Tapping Term Definitions:
-uint16_t get_tapping_term(uint16_t keycode) {
- switch (keycode) {
- case TD(TD_DBQT):
- return 235;
- default:
- return TAPPING_TERM;
- }
+uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case TD(TD_DBQT):
+ return 235;
+ default:
+ return TAPPING_TERM;
+ }
}
-
// Encoder Customization: (*Order-of-Keycode Specific)
void encoder_update_user(uint8_t index, bool clockwise) {
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 16f469b53a..8607c8e4ee 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 @@
- /*
+ /*
Copyright 2020 Garret Gartner
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#include QMK_KEYBOARD_H
@@ -184,19 +184,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// )
-
// Per-Key Tapping Term Definitions:
-uint16_t get_tapping_term(uint16_t keycode) {
- switch (keycode) {
- case TD(TD_DBQT):
- return 235;
- default:
- return TAPPING_TERM;
- }
+uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case TD(TD_DBQT):
+ return 235;
+ default:
+ return TAPPING_TERM;
+ }
}
-
-
// Encoder Customization: (*Order-of-Keycode Specific)
void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) {