private void Shutdown(ReadOnlySpan <byte> span) { _excluded.Clear(); _colors.Clear(); DeviceType = LogiSetTargetDeviceType.All; BackgroundColor = SKColors.Empty; _logger.Information("LogiLedShutdown: {name}", Encoding.UTF8.GetString(span)); ColorsUpdated?.Invoke(this, EventArgs.Empty); }
private void SetTargetDevice(ReadOnlySpan <byte> span) { DeviceType = (LogiSetTargetDeviceType)BitConverter.ToInt32(span); _logger.Verbose("SetTargetDevice: {deviceType} ", DeviceType); }