diff --git a/PCUT/PCUT/Package.appxmanifest b/PCUT/PCUT/Package.appxmanifest
index cccbb17..c03a692 100644
--- a/PCUT/PCUT/Package.appxmanifest
+++ b/PCUT/PCUT/Package.appxmanifest
@@ -9,7 +9,7 @@
+ Version="1.3.2.0" />
diff --git a/PCUT/PCUT/Pages/DesignCenter/DesignCenterPage.xaml.cs b/PCUT/PCUT/Pages/DesignCenter/DesignCenterPage.xaml.cs
index 0dec773..ed593b3 100644
--- a/PCUT/PCUT/Pages/DesignCenter/DesignCenterPage.xaml.cs
+++ b/PCUT/PCUT/Pages/DesignCenter/DesignCenterPage.xaml.cs
@@ -149,7 +149,7 @@ namespace PCUT.Pages
if (infos != null && infos.Any())
{
var portInfos = new List();
- foreach (var info in infos)
+ foreach (var info in infos.Where(x => x.Id != null))
{
using (var deviceInfo = await SerialDevice.FromIdAsync(info.Id))
{
@@ -181,12 +181,12 @@ namespace PCUT.Pages
private async void Refresh_Click(object sender, RoutedEventArgs e)
{
var deviceInfo = await GetPortInfos();
- viewModel.Ports.Clear();
- foreach (var info in deviceInfo)
- viewModel.Ports.Add(info);
- if (deviceInfo.Any())
- viewModel.SelectedPortIndex = 0;
- }
+ viewModel.Ports.Clear();
+ foreach (var info in deviceInfo)
+ viewModel.Ports.Add(info);
+ if (deviceInfo.Any())
+ viewModel.SelectedPortIndex = 0;
+ }
private void TextBox_BeforeTextChanging(TextBox sender, TextBoxBeforeTextChangingEventArgs args)
{