Skip to content

Commit

Permalink
Quote the temp filename when testing flash size
Browse files Browse the repository at this point in the history
  • Loading branch information
benlye committed Oct 31, 2020
1 parent 84ae37d commit 90e37ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flash-multi/Devices/SerialDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static async Task WriteFlash(FlashMulti flashMulti, string fileName, stri
string tempFileName = Path.GetTempFileName();

// Set the stm32flash.exe command line arguments for reading the 32B of flash above 64KB
commandArgs = $"-r {tempFileName} -S 0x8010000:32 -b {serialBaud} {comPort}";
commandArgs = $"-r \"{tempFileName}\" -S 0x8010000:32 -b {serialBaud} {comPort}";

// Run the read command asynchronously and wait for it to finish
await Task.Run(() => { returnCode = RunCommand.Run(flashMulti, command, commandArgs); });
Expand Down

0 comments on commit 90e37ab

Please sign in to comment.