summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmding8 <44815547+jmding8@users.noreply.github.com>2021-11-01 10:51:12 -0700
committerGitHub <noreply@github.com>2021-11-01 13:51:12 -0400
commit73fd4b9230bec4333fc3ecc74e455af78016f0e2 (patch)
treeaa98673b0ab969723f002788ce97985f82ab9009
parent19ee7849f80e18d8f29ac47ffeee3bb223c35a80 (diff)
fix(behavior): Properly break in decision switch statement.
Co-authored-by: jding <jding@roblox.com>
-rw-r--r--app/src/behaviors/behavior_hold_tap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/behaviors/behavior_hold_tap.c b/app/src/behaviors/behavior_hold_tap.c
index a5c4e90..1871df7 100644
--- a/app/src/behaviors/behavior_hold_tap.c
+++ b/app/src/behaviors/behavior_hold_tap.c
@@ -413,10 +413,13 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap,
switch (hold_tap->config->flavor) {
case FLAVOR_HOLD_PREFERRED:
decide_hold_preferred(hold_tap, decision_moment);
+ break;
case FLAVOR_BALANCED:
decide_balanced(hold_tap, decision_moment);
+ break;
case FLAVOR_TAP_PREFERRED:
decide_tap_preferred(hold_tap, decision_moment);
+ break;
}
if (hold_tap->status == STATUS_UNDECIDED) {