diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-24 03:18:08 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-24 03:18:08 +0200 |
| commit | 74090438f4bbd60ad561c35b63b351a54014e4d2 (patch) | |
| tree | 6752d25a1e0975e9d73a813d9470e67f23bee5c8 /Software/Visual_Studio | |
| parent | c90029f3d37e41ef14323f86e10a66bb8dfafa60 (diff) | |
| download | Tango-74090438f4bbd60ad561c35b63b351a54014e4d2.tar.gz Tango-74090438f4bbd60ad561c35b63b351a54014e4d2.zip | |
Upload hw config on usb/emulator.
Diffstat (limited to 'Software/Visual_Studio')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/Connection/DefaultMachineProvider.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Connection/DefaultMachineProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/Connection/DefaultMachineProvider.cs index 4d4c3aeef..d76acd60e 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Connection/DefaultMachineProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Connection/DefaultMachineProvider.cs @@ -203,8 +203,24 @@ namespace Tango.FSE.UI.Connection await MachineOperator.Connect(); + if (machine.GetType() == typeof(ExternalBridgeUsbClient) || machine.GetType() == typeof(EmulatorExternalBridge)) + { + task.UpdateProgress("Uploading hardware configuration..."); + await Task.Delay(1000); + + try + { + await machine.UploadHardwareConfiguration(Machine.Configuration.HardwareVersion, Machine.Configuration); + } + catch (Exception ex) + { + await NotificationProvider.ShowWarning($"Error uploading hardware configuration.\n{ex.FlattenMessage()}"); + } + } + IsConnected = true; OnMachineConnected(MachineOperator); + return true; } } |
