summaryrefslogtreecommitdiff
path: root/quantum/action.c
diff options
context:
space:
mode:
authorIlya Zhuravlev <whatever@xyz.is>2022-04-02 16:39:12 -0600
committerIlya Zhuravlev <whatever@xyz.is>2022-04-02 16:39:12 -0600
commite1fbf6f13dce7e7c9e6cb5b95b25c6a9e140727e (patch)
tree51dfa2dfa757392358a47f679577e02553935347 /quantum/action.c
parent67e10a43cb044472ec0bf997a5fcf09193ddcc1d (diff)
qmk_settings: wrap TAPPING_TOGGLE
Diffstat (limited to 'quantum/action.c')
-rw-r--r--quantum/action.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/action.c b/quantum/action.c
index 0f9ea2120a..6403d4b664 100644
--- a/quantum/action.c
+++ b/quantum/action.c
@@ -392,11 +392,11 @@ if (QS_oneshot_tap_toggle > 1) {
# endif
case MODS_TAP_TOGGLE:
if (event.pressed) {
- if (tap_count <= TAPPING_TOGGLE) {
+ if (tap_count <= QS_tapping_toggle) {
register_mods(mods);
}
} else {
- if (tap_count < TAPPING_TOGGLE) {
+ if (tap_count < QS_tapping_toggle) {
unregister_mods(mods);
}
}
@@ -549,11 +549,11 @@ if (QS_oneshot_tap_toggle > 1) {
case OP_TAP_TOGGLE:
/* tap toggle */
if (event.pressed) {
- if (tap_count < TAPPING_TOGGLE) {
+ if (tap_count < QS_tapping_toggle) {
layer_invert(action.layer_tap.val);
}
} else {
- if (tap_count <= TAPPING_TOGGLE) {
+ if (tap_count <= QS_tapping_toggle) {
layer_invert(action.layer_tap.val);
}
}
@@ -688,7 +688,7 @@ if (QS_oneshot_tap_toggle > 1) {
swap_hands = !swap_hands;
}
} else {
- if (tap_count < TAPPING_TOGGLE) {
+ if (tap_count < QS_tapping_toggle) {
swap_hands = !swap_hands;
}
}