From 1a746b2c7f4ef52cc8a5eea79f51ebaae3be022c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 21 Jul 2023 11:22:42 +0100 Subject: Allow timers to not be restarted after changing the interval. This is useful if you're changing them from Tick. --- include/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/timer.h') diff --git a/include/timer.h b/include/timer.h index 7979f2f5a..ee665eb2d 100644 --- a/include/timer.h +++ b/include/timer.h @@ -79,7 +79,7 @@ public: /** Sets the interval between two ticks. */ - void SetInterval(unsigned long interval); + void SetInterval(unsigned long interval, bool restart = true); /** Called when the timer ticks. * You should override this method with some useful code to -- cgit v1.3.1-10-gc9f91