private async Task EnableAsync(string deviceId) { if (sensor != null) { Disable(); } sensor = await Gyrometer.FromIdAsync(deviceId); sensor.ReadingChanged += Sensor_ReadingChangedAsync; }
private async Task EnableAsync(string deviceId) { if (sensor != null) { Disable(); } sensor = await Gyrometer.FromIdAsync(deviceId); sensor.ReadingChanged += Sensor_ReadingChangedAsync; }