fix(blind): ensure led is "on" when blind off
This commit is contained in:
parent
187735eee6
commit
0b8d2218c1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user