Skip to content

Commit

Permalink
added await
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke committed Sep 29, 2023
1 parent 5f1963d commit 3a7b680
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public override async ValueTask ExecuteAsync(IConsole console)
}
await Task.Delay(500);
ports = await MeadowConnectionManager.GetSerialPorts();
newPort = ports.Except(initialPorts).FirstOrDefault();
}

// configure the route to that port for the user
Expand All @@ -138,7 +139,7 @@ public override async ValueTask ExecuteAsync(IConsole console)
await ExecuteCommand(connection, connection.Device, cancellationToken);
}

var deviceInfo = connection.Device.GetDeviceInfo(cancellationToken);
var deviceInfo = await connection.Device.GetDeviceInfo(cancellationToken);

if (deviceInfo != null)
{
Expand Down

0 comments on commit 3a7b680

Please sign in to comment.