We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12470fe commit 3f7c39dCopy full SHA for 3f7c39d
nanoFirmwareFlasher/Program.cs
@@ -246,6 +246,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
246
// DFU related
247
else if (
248
o.ListDevicesInDfuMode ||
249
+ o.DfuUpdate ||
250
!string.IsNullOrEmpty(o.DfuDeviceId))
251
{
252
o.Platform = "stm32";
nanoFirmwareFlasher/Stm32Operations.cs
@@ -136,6 +136,7 @@ internal static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync
136
if (updateInterface == Interface.Dfu)
137
138
// DFU update
139
+ dfuDeviceId = dfuDeviceId == null ? connectedStDfuDevices[0].serial : dfuDeviceId;
140
dfuDevice = new StmDfuDevice(dfuDeviceId);
141
142
if (!dfuDevice.DevicePresent)
0 commit comments