Skip to content

Commit

Permalink
More aggressive serial port attach
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Aug 8, 2024
1 parent da2cfe0 commit 0329311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/v2/Meadow.Hcom/Connections/SerialConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public override void Detach()
_port.DiscardInBuffer();

// wait for a response
var timeout = timeoutSeconds * 20;
var timeout = timeoutSeconds * 50;
var dataReceived = false;

// local function so we can unsubscribe
Expand All @@ -222,7 +222,7 @@ public override void Detach()
break;
}

await Task.Delay(50);
await Task.Delay(20);
}

// if HCOM fails, check for DFU/bootloader mode? only if we're doing an OS thing, so maybe no
Expand Down

0 comments on commit 0329311

Please sign in to comment.