From 06c721fef61444d601f84a9c7765052e4eee6f20 Mon Sep 17 00:00:00 2001 From: Alex Ballas Date: Fri, 30 May 2025 11:40:33 +0300 Subject: [PATCH] Add comment to clarify the need to stop the tickers --- display.go | 1 + 1 file changed, 1 insertion(+) diff --git a/display.go b/display.go index 6bf3ea4..cf1a0cc 100644 --- a/display.go +++ b/display.go @@ -339,6 +339,7 @@ func startBacklightTickers() { return } + // Stop existing tickers to prevent multiple active instances on repeated calls if dimTicker != nil { dimTicker.Stop() }