summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForsakenRei <frozen0416@gmail.com>2021-07-26 22:45:08 -0400
committerGitHub <noreply@github.com>2021-07-26 19:45:08 -0700
commitae2c2358ec9f581c3c1890edcb618297983746d1 (patch)
treea428d2df3ceee42b4394fc3e6be32745f7d7b204
parenta617c8b80a5e1760ffaac5e4367d89065f2fbce9 (diff)
[Docs] Add `default` case in Tap Dance Example 6 (#13727)
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`
-rw-r--r--docs/feature_tap_dance.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_tap_dance.md b/docs/feature_tap_dance.md
index 7396e791c3..5d77f3e08d 100644
--- a/docs/feature_tap_dance.md
+++ b/docs/feature_tap_dance.md
@@ -490,6 +490,8 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
layer_on(_MY_LAYER);
}
break;
+ default:
+ break;
}
}