diff options
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs index 24a0f6119..ad5c449c8 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs @@ -191,7 +191,7 @@ namespace Tango.MachineEM.UI.ViewModels /// <param name="e">The <see cref="ClientConnectedEventArgs"/> instance containing the event data.</param> private void TcpServer_ClientConnected(object sender, ClientConnectedEventArgs e) { - Emulator.Transporter.Adapters.Add(new TcpTransportAdapter(e.Socket)); + Emulator.Transporter.Adapter = new TcpTransportAdapter(e.Socket); } #endregion @@ -211,7 +211,7 @@ namespace Tango.MachineEM.UI.ViewModels } else { - Emulator.Transporter.Adapters.Add(new UsbTransportAdapter(SelectedPort)); + Emulator.Transporter.Adapter = new UsbTransportAdapter(SelectedPort); } await Emulator.Start(); InvalidateRelayCommands(); |
