From 0b8d2218c1098ca821109dcc2fec92ae4369bc8d Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Sun, 2 Jan 2022 16:54:21 +0100 Subject: [PATCH] fix(blind): ensure led is "on" when blind off --- pkg/led/led.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/led/led.go b/pkg/led/led.go index c7b8d10..3688a0a 100644 --- a/pkg/led/led.go +++ b/pkg/led/led.go @@ -118,7 +118,7 @@ func (l *PiColorLed) blink(freq float64) { ticker := time.NewTicker(time.Duration(float64(time.Second) / freq)) // Restore values - defer l.SetColor(l.Color()) + defer l.on() for { select {