fix(blind): ensure led is "on" when blind off

This commit is contained in:
Cyrille Nofficial 2022-01-02 16:54:21 +01:00
parent 187735eee6
commit 0b8d2218c1

View File

@ -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 {