From 8f760c79740353e7bf8a3c8876180133b80872c4 Mon Sep 17 00:00:00 2001 From: Kaya <95276965+kytpbs@users.noreply.github.com> Date: Wed, 22 May 2024 03:43:28 +0300 Subject: [PATCH 1/2] Expose `watchdog.printEpochs` in CommandScheduler --- commands2/commandscheduler.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands2/commandscheduler.py b/commands2/commandscheduler.py index cb0dc4c0..e872575e 100644 --- a/commands2/commandscheduler.py +++ b/commands2/commandscheduler.py @@ -480,6 +480,12 @@ def enable(self) -> None: """Enables the command scheduler.""" self._disabled = False + def printWatchdogEpochs(self) -> None: + """ + Prints the watchdog epochs to the console. + """ + self._watchdog.printEpochs() + def onCommandInitialize(self, action: Callable[[Command], Any]) -> None: """ Adds an action to perform on the initialization of any command by the scheduler. From 649fabda5b60a20368faa7aebd32c40bed646449 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sun, 23 Jun 2024 11:34:32 -0400 Subject: [PATCH 2/2] Update commands2/commandscheduler.py Co-authored-by: Jade --- commands2/commandscheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands2/commandscheduler.py b/commands2/commandscheduler.py index e872575e..7777b8cd 100644 --- a/commands2/commandscheduler.py +++ b/commands2/commandscheduler.py @@ -482,7 +482,7 @@ def enable(self) -> None: def printWatchdogEpochs(self) -> None: """ - Prints the watchdog epochs to the console. + Prints list of epochs added so far and their times. """ self._watchdog.printEpochs()