aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/feature_tap_dance.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/feature_tap_dance.md b/docs/feature_tap_dance.md
index 32dffa9cd..24cd2b440 100644
--- a/docs/feature_tap_dance.md
+++ b/docs/feature_tap_dance.md
@@ -200,12 +200,12 @@ typedef struct {
200int cur_dance (qk_tap_dance_state_t *state) { 200int cur_dance (qk_tap_dance_state_t *state) {
201 if (state->count == 1) { 201 if (state->count == 1) {
202 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP 202 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP
203 if (state->interrupted || state->!pressed) return SINGLE_TAP; 203 if (state->interrupted || state->pressed==0) return SINGLE_TAP;
204 else return SINGLE_HOLD; 204 else return SINGLE_HOLD;
205 } 205 }
206 //If count = 2, and it has been interrupted - assume that user is trying to type the letter associated 206 //If count = 2, and it has been interrupted - assume that user is trying to type the letter associated
207 //with single tap. In example below, that means to send `xx` instead of `Escape`. 207 //with single tap. In example below, that means to send `xx` instead of `Escape`.
208 else if (state->count = 2) { 208 else if (state->count == 2) {
209 if (state->interrupted) return DOUBLE_SINGLE_TAP; 209 if (state->interrupted) return DOUBLE_SINGLE_TAP;
210 else if (state->pressed) return DOUBLE_HOLD; 210 else if (state->pressed) return DOUBLE_HOLD;
211 else return DOUBLE_TAP; 211 else return DOUBLE_TAP;