X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=docs%2Ffeature_tap_dance.md;h=24cd2b4407611fc586774ec98e20ea0cc39a0403;hb=fca03e15b9f111e614738d9dcce09e03c49e9409;hp=32dffa9cd3fcbd7c669596edbab7d66f07302f40;hpb=67cc5cebc0430d15169e2c649ea25112a31bfa31;p=qmk_firmware.git 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 { int cur_dance (qk_tap_dance_state_t *state) { if (state->count == 1) { //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP - if (state->interrupted || state->!pressed) return SINGLE_TAP; + if (state->interrupted || state->pressed==0) return SINGLE_TAP; else return SINGLE_HOLD; } //If count = 2, and it has been interrupted - assume that user is trying to type the letter associated //with single tap. In example below, that means to send `xx` instead of `Escape`. - else if (state->count = 2) { + else if (state->count == 2) { if (state->interrupted) return DOUBLE_SINGLE_TAP; else if (state->pressed) return DOUBLE_HOLD; else return DOUBLE_TAP;