Skip to content

Commit

Permalink
Aggressively poll for serial port connections when attaching
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Aug 8, 2024
1 parent 20cbb9c commit 5eab4d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public partial class SerialConnection

public override async Task WaitForMeadowAttach(CancellationToken? cancellationToken)
{
var timeout = 20;
var timeout = 500;

while (timeout-- > 0)
{
Expand All @@ -26,7 +26,7 @@ public override async Task WaitForMeadowAttach(CancellationToken? cancellationTo
return;
}

await Task.Delay(500);
await Task.Delay(20);

if (!_port.IsOpen)
{
Expand Down

0 comments on commit 5eab4d6

Please sign in to comment.