From 1605c00a64a2321221d7d0878f4932e8941dc932 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Sun, 6 Sep 2015 18:53:50 +0200 Subject: [PATCH] Fixed static comports --- .../ErgometerSimulator/ErgometerSimulator.Designer.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ErgometerSimulator/ErgometerSimulator/ErgometerSimulator.Designer.cs b/ErgometerSimulator/ErgometerSimulator/ErgometerSimulator.Designer.cs index 9d50884..0c52a1a 100644 --- a/ErgometerSimulator/ErgometerSimulator/ErgometerSimulator.Designer.cs +++ b/ErgometerSimulator/ErgometerSimulator/ErgometerSimulator.Designer.cs @@ -47,9 +47,7 @@ namespace ErgometerSimulator // ComPortBox // this.ComPortBox.FormattingEnabled = true; - this.ComPortBox.Items.AddRange(new object[] { - "COM5", - "COM4"}); + this.ComPortBox.Items.AddRange(SerialPort.GetPortNames()); this.ComPortBox.Location = new System.Drawing.Point(12, 12); this.ComPortBox.Name = "ComPortBox"; this.ComPortBox.Size = new System.Drawing.Size(121, 24);