Always filter out unreachable mac ports

This commit is contained in:
Lars Brubaker 2016-11-03 09:57:48 -07:00
parent e0f72b602a
commit 9b286701a8
2 changed files with 2 additions and 3 deletions

View file

@ -162,8 +162,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
protected void CreateSerialPortControls(FlowLayoutWidget comPortContainer, string activePrinterSerialPort)
{
int portIndex = 0;
string[] allPorts = FrostedSerialPort.GetPortNames();
IEnumerable<string> portsToCreate = FrostedSerialPort.FilterPortsForMac(allPorts);
string[] portsToCreate = FrostedSerialPort.GetPortNames();
// Add a radio button for each filtered port
foreach (string portName in portsToCreate)