Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SerialComm/ViewModel/SerialCommViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public ICommand Open
return _Open;
}
}

public ICommand Close
{
get
Expand All @@ -137,7 +137,7 @@ public ICommand Close
return _Close;
}
}

public ICommand Send
{
get
Expand Down Expand Up @@ -228,7 +228,7 @@ public SerialCommViewModel()
}

// Set default values
if (CommPorts != null) SelectedCommPort = CommPorts[0];
if (CommPorts != null && CommPorts.Count > 0) SelectedCommPort = CommPorts[0];
SelectedBaudRate = 9600;
SelectedParity = Parity.None;
SelectedDataBits = 8;
Expand Down