Skip to content

Commit 3514ddf

Browse files
committed
add debug writes for viz
1 parent 61c0e11 commit 3514ddf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Source/v2/Meadow.CLI.Core/DFU/DfuUtils.cs

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private static void FormatDfuOutput(string logLine, ILogger? logger, DfuFlashFor
5555
}
5656
else //Console out
5757
{
58+
Debug.WriteLine(logLine);
5859
Console.Write(logLine);
5960

6061
Console.Write(logLine.Contains("%") ? "\r" : "\r\n");

Source/v2/Meadow.CLI.Core/Firmware/FirmwareWriter.cs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Meadow.CLI.Core.Internals.Dfu;
22
using Meadow.LibUsb;
33
using Microsoft.Extensions.Logging;
4+
using System.Diagnostics;
45

56
namespace MeadowCLI;
67

@@ -47,6 +48,8 @@ public async Task WriteOsWithDfu(string osFile, ILogger? logger = null, bool use
4748

4849
var serialNumber = devices.First().GetDeviceSerialNumber();
4950

51+
Debug.WriteLine($"DFU Writing file {osFile}");
52+
5053
await DfuUtils.FlashFile(
5154
osFile,
5255
serialNumber,

0 commit comments

Comments
 (0)