Browse Source

mark Nanoleaf panels for update if updateEffect changes th effect.

pull/1/head
Gisle Aune 4 years ago
parent
commit
d6fdb48023
  1. 6
      internal/drivers/nanoleaf/bridge.go

6
internal/drivers/nanoleaf/bridge.go

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

Loading…
Cancel
Save