Skip to content

Commit

Permalink
Fixing MAXMIX-F
Browse files Browse the repository at this point in the history
  • Loading branch information
t3knomanzer committed Aug 26, 2020
1 parent 64cbac3 commit f92db6f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ private Task<string> DiscoverAsync()

private string Discover()
{
var portNames = SerialPort.GetPortNames();

string[] portNames;
var result = string.Empty;
SerialPort serialPort = null;

try { portNames = SerialPort.GetPortNames(); }
catch { return result; }

SerialPort serialPort = null;
foreach (var portName in portNames)
{
try
Expand Down

0 comments on commit f92db6f

Please sign in to comment.