Correct the tapDanceAction prototype in the example

With the wrong prototype, we do not override the default, and the callback never
triggers.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent d2fcb75844
commit bae049583d

@ -43,7 +43,7 @@ static void tapDanceEsc (uint8_t tapDanceIndex, uint8_t tapCount, Akela::TapDanc
tapDanceActionKeys (tapCount, tapDanceAction, Key_Esc, Key_Tab); tapDanceActionKeys (tapCount, tapDanceAction, Key_Esc, Key_Tab);
} }
void tapDanceAction (uint8_t tapDanceIndex, uint8_t tapCount, Akela::TapDance::ActionType tapDanceAction) { void tapDanceAction (uint8_t tapDanceIndex, byte row, byte col, uint8_t tapCount, Akela::TapDance::ActionType tapDanceAction) {
switch (tapDanceIndex) { switch (tapDanceIndex) {
case 0: case 0:
return tapDanceActionKeys (tapCount, tapDanceAction, Key_Tab, Key_Esc); return tapDanceActionKeys (tapCount, tapDanceAction, Key_Tab, Key_Esc);

Loading…
Cancel
Save