swipe_update允许up_wait为0

This commit is contained in:
zhbaor 2024-11-17 22:50:31 +08:00
parent 166641ebee
commit 8362a31ffd

View file

@ -468,8 +468,9 @@ class BaseSolver:
""" """
if config.stop_mower.is_set(): if config.stop_mower.is_set():
raise MowerExit raise MowerExit
points += points[-1:] if up_wait > 0:
durations.append(up_wait) points += points[-1:]
durations.append(up_wait)
return config.device.swipe_ext(points, durations, True, interval, func) return config.device.swipe_ext(points, durations, True, interval, func)
def back(self, interval: float = 1) -> None: def back(self, interval: float = 1) -> None: