only:variable name

This commit is contained in:
rusefillc 2023-12-26 12:40:09 -05:00
parent ba225cd089
commit 5a2f7692d3
1 changed files with 2 additions and 2 deletions

View File

@ -246,9 +246,9 @@ public class DfuFlasher {
if (fileName == null) if (fileName == null)
throw new FileNotFoundException("File not found " + prefix + "*" + suffix); throw new FileNotFoundException("File not found " + prefix + "*" + suffix);
// we need quotes in case if absolute path contains spaces // we need quotes in case if absolute path contains spaces
String hexAbsolutePath = quote(new File(fileName).getAbsolutePath()); String quotedAbsolutePath = quote(new File(fileName).getAbsolutePath());
return DFU_BINARY_LOCATION + "/" + DFU_BINARY + " -c port=usb1 -w " + hexAbsolutePath + " 0x08000000 -v -s"; return DFU_BINARY_LOCATION + "/" + DFU_BINARY + " -c port=usb1 -w " + quotedAbsolutePath + " 0x08000000 -v -s";
} }
private static String quote(String absolutePath) { private static String quote(String absolutePath) {