diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 14:16:26 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 14:16:26 +0300 |
| commit | de5700549a5fe01862f71d452f2abe4a74996605 (patch) | |
| tree | d64cd490c7012ea96299ea891d5d7013a822e347 /Software/Visual_Studio/PPC/Tango.PPC.Common | |
| parent | c6b01f3e683b83fb0d6bf080efbd24a9a732b9f5 (diff) | |
| download | Tango-de5700549a5fe01862f71d452f2abe4a74996605.tar.gz Tango-de5700549a5fe01862f71d452f2abe4a74996605.zip | |
Implemented PPC twine animated gif.
Sign out.
Implemented TangoInject attribute 'When Available' mode!
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/IAuthenticationProvider.cs | 2 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/IAuthenticationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/IAuthenticationProvider.cs index 0892932a8..75c2b1d61 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/IAuthenticationProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/IAuthenticationProvider.cs @@ -33,6 +33,6 @@ namespace Tango.PPC.Common.Authentication /// <summary> /// Logs-out the current logged-in user. /// </summary> - void Logout(); + void LogOut(); } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs index 1fd5fdd0a..d0f8f4c6c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs @@ -71,12 +71,16 @@ namespace Tango.PPC.Common.Connection private async void ConnectToMachine() { - Transport.Discovery.UsbCommunicationScanner<ConnectRequest, ConnectResponse> scanner = new Transport.Discovery.UsbCommunicationScanner<ConnectRequest, ConnectResponse>(UsbSerialBaudRates.BR_9600); - var response = await scanner.Scan(new ConnectRequest() { Password = "1234" }, TimeSpan.FromSeconds(10)); + try + { + Transport.Discovery.UsbCommunicationScanner<ConnectRequest, ConnectResponse> scanner = new Transport.Discovery.UsbCommunicationScanner<ConnectRequest, ConnectResponse>(UsbSerialBaudRates.BR_9600); + var response = await scanner.Scan(new ConnectRequest() { Password = "1234" }, TimeSpan.FromSeconds(10)); - await MachineOperator.Disconnect(); - MachineOperator.Adapter = response.Adapter; - await MachineOperator.Connect(); + await MachineOperator.Disconnect(); + MachineOperator.Adapter = response.Adapter; + await MachineOperator.Connect(); + } + catch { } } } } |
