Skip to content

Commit

Permalink
[Docs] Add default case in Tap Dance Example 6 (qmk#13727)
Browse files Browse the repository at this point in the history
Added a `default` case in `switch(ql_tap_state.state)` at line 493 and 494.
Without it compile firmware with Example 6 code will encounter 2 errors:
`enumeration value 'TD_NONE' not handled in switch`
`enumeration value 'TD_UNKNOWN' not handled in switch`
  • Loading branch information
ForsakenRei authored Jul 27, 2021
1 parent 4fad59f commit a173337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/feature_tap_dance.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
layer_on(_MY_LAYER);
}
break;
default:
break;
}
}

Expand Down

0 comments on commit a173337

Please sign in to comment.