From 477fc0055d1a2459dd95263981ca6b2feda1cfb1 Mon Sep 17 00:00:00 2001 From: WispySparks Date: Sun, 23 Feb 2025 00:31:42 -0600 Subject: [PATCH] Add Subsystem.idle() --- commands2/subsystem.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/commands2/subsystem.py b/commands2/subsystem.py index 1abdf23..d0b73d0 100644 --- a/commands2/subsystem.py +++ b/commands2/subsystem.py @@ -168,6 +168,16 @@ def startRun(self, start: Callable[[], None], run: Callable[[], None]) -> Comman return startRun(start, run, self) + def idle(self) -> Command: + """ + Constructs a command that does nothing until interrupted. Requires this subsystem. + + :returns: the command + """ + from .cmd import idle + + return idle(self) + # # From SubsystemBase #