mark Nanoleaf panels for update if updateEffect changes th effect.
This commit is contained in:
@@ -300,6 +300,12 @@ func (b *bridge) updateEffect(ctx context.Context) error {
|
||||
return models.ErrUnexpectedResponse
|
||||
}
|
||||
|
||||
b.mu.Lock()
|
||||
for _, panel := range b.panels {
|
||||
panel.Stale = true
|
||||
}
|
||||
b.mu.Unlock()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user