Skip to content

Commit 545d071

Browse files
authored
Fix ArgumentNullException when testing stm32 args (#22)
1 parent 51c8b73 commit 545d071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/nanoFirmwareFlasher/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
192192
else if (
193193
o.ListDevicesInDfuMode ||
194194
!string.IsNullOrEmpty(o.DfuDeviceId) ||
195-
o.DfuFile.Any())
195+
!string.IsNullOrEmpty(o.DfuFile))
196196
{
197197
o.Platform = "stm32";
198198
}

0 commit comments

Comments
 (0)