Skip to content

Commit

Permalink
improve firmware write messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke authored and CartBlanche committed Sep 29, 2023
1 parent d5f0605 commit 2cd34ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ protected override async ValueTask ExecuteCommand(IMeadowConnection connection,
Logger.LogInformation(e.message);
}
};
connection.ConnectionMessage += (s, message) =>
{
Logger.LogInformation(message);
};

var package = await GetSelectedPackage();

Expand Down
3 changes: 1 addition & 2 deletions Source/v2/Meadow.Hcom/Connections/SerialConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,10 @@ public override async Task<bool> WriteCoprocessorFile(
_port.ReadTimeout = 60000;
CommandTimeoutSeconds = 180;
InfoMessages.Clear();
var infoCount = 0;

try
{
RaiseConnectionMessage("\nTransferring file to coprocessor...");
RaiseConnectionMessage($"Transferring {Path.GetFileName(localFileName)} to coprocessor...");

// push the file to the device
await WriteFile(localFileName, null,
Expand Down

0 comments on commit 2cd34ba

Please sign in to comment.