Skip to content

Commit aca401d

Browse files
schluisMeiiMoon
andauthored
Do animation mode *only* if head_rear is pressed (HULKs#1891)
Co-authored-by: MeiiMoon <[email protected]>
1 parent 61bd2ae commit aca401d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/control/src/button_filter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ impl ButtonFilter {
7171
calibration_buttons_timeout,
7272
);
7373

74-
let animation_buttons_touched = touch_sensors.head_rear;
74+
let animation_buttons_touched =
75+
touch_sensors.head_rear && !touch_sensors.head_middle && !touch_sensors.head_front;
7576

7677
let debounced_animation_buttons_touched = self.debounced_animation_button.debounce_button(
7778
animation_buttons_touched,

0 commit comments

Comments
 (0)