Beispiel #1
0
        private async Task InitDevice()
        {
            using (MarkBusy())
            {
                if (SelectedDevice != null)
                {
                    await _teensyBatDevice.Connect(SelectedDevice);

                    GetInfoCommand command = new GetInfoCommand();
                    DeviceInfo = await command.Execute(_teensyBatDevice);
                }
            }
        }
Beispiel #2
0
 private async void Refresh()
 {
     using (MarkBusy())
     {
         if (_teensyBatDevice != null && _teensyBatDevice.IsConnected)
         {
             GetInfoCommand command = new GetInfoCommand();
             DeviceInfo = await command.Execute(_teensyBatDevice);
         }
         else
         {
             await CheckForDevice();
         }
     }
 }