From 71d63fe37913536f96083de6f0a7b535bf1d6e7b Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:24:22 +0800 Subject: [PATCH] Fix: Always up contact no matter it was downed or not --- tasks/map/control/joystick.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasks/map/control/joystick.py b/tasks/map/control/joystick.py index 30e9f4be4..38b8d13e9 100644 --- a/tasks/map/control/joystick.py +++ b/tasks/map/control/joystick.py @@ -101,9 +101,8 @@ class JoystickContact: def up(self): builder = self.builder - if self.is_downed: - builder.up().commit() - builder.send() + builder.up().commit() + builder.send() self.prev_point = None def set(self, direction, run=True):