You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which should send a number 1 or toggle to layer 2 if double tapped. However during compilation I get:
Compiling: keyboards/kinesis/keymaps/dky/keymap.c keyboards/kinesis/keymaps/dky/keymap.c:134:16: error: implicit declaration of function 'ACTION_TAP_DANCE_LAYER_TOGGLE'; did you mean 'ACTION_TAP_DANCE_DUAL_ROLE'? [-Werror=implicit-function-declaration]
[TD_DVORAK] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_1, layer),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ACTION_TAP_DANCE_DUAL_ROLE
keyboards/kinesis/keymaps/dky/keymap.c:134:52: error: 'layer' undeclared here (not in a function)
[TD_DVORAK] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_1, layer),
^~~~~
cc1: all warnings being treated as errors
[ERRORS]
Can someone please chime in on what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
Looks like the documentation is incorrect and the actual name for that Tap Dance action is ACTION_TAP_DANCE_TOGGLE_LAYER, not LAYER_TOGGLE. Additionally I think you are not filling in the layer argument - it has to be a constant value.
I'm trying to define leverage the ACTION_TAP_DANCE_LAYER_TOGGLE but it's not working for me. I'm basically using it as so:
[TD_DVORAK] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_1, 2)
Which should send a number 1 or toggle to layer 2 if double tapped. However during compilation I get:
Compiling: keyboards/kinesis/keymaps/dky/keymap.c keyboards/kinesis/keymaps/dky/keymap.c:134:16: error: implicit declaration of function 'ACTION_TAP_DANCE_LAYER_TOGGLE'; did you mean 'ACTION_TAP_DANCE_DUAL_ROLE'? [-Werror=implicit-function-declaration]
[TD_DVORAK] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_1, layer),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ACTION_TAP_DANCE_DUAL_ROLE
keyboards/kinesis/keymaps/dky/keymap.c:134:52: error: 'layer' undeclared here (not in a function)
[TD_DVORAK] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_1, layer),
^~~~~
cc1: all warnings being treated as errors
[ERRORS]
Can someone please chime in on what I'm doing wrong?
The text was updated successfully, but these errors were encountered: