private async Task InitDevice() { using (MarkBusy()) { if (SelectedDevice != null) { await _teensyBatDevice.Connect(SelectedDevice); GetInfoCommand command = new GetInfoCommand(); DeviceInfo = await command.Execute(_teensyBatDevice); } } }
private async void Refresh() { using (MarkBusy()) { if (_teensyBatDevice != null && _teensyBatDevice.IsConnected) { GetInfoCommand command = new GetInfoCommand(); DeviceInfo = await command.Execute(_teensyBatDevice); } else { await CheckForDevice(); } } }