method name typo
This commit is contained in:
parent
7970659284
commit
bf6a2c0aa1
|
@ -30,7 +30,7 @@ public class EraseChip extends ProcessStatusWindow {
|
|||
|
||||
@NotNull
|
||||
private String getEraseCommand() {
|
||||
return FirmwareFlasher.getOpenovdCommad() + ERASE_COMMAND_SUFFIX;
|
||||
return FirmwareFlasher.getOpenocdCommad() + ERASE_COMMAND_SUFFIX;
|
||||
}
|
||||
|
||||
public JButton getButton() {
|
||||
|
|
|
@ -48,7 +48,7 @@ public class FirmwareFlasher extends ProcessStatusWindow {
|
|||
});
|
||||
}
|
||||
|
||||
public static String getOpenovdCommad() {
|
||||
public static String getOpenocdCommad() {
|
||||
String cfg = OlderDiscoveryChecbbox.olderMode ? "stm32f4discovery.cfg" : "stm32f429disc1.cfg";
|
||||
return BINARY_LOCATION + File.separator + OPENOCD_EXE + " -f openocd/" + cfg;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class FirmwareFlasher extends ProcessStatusWindow {
|
|||
wnd.appendMsg(fileName + " not found, cannot proceed !!!");
|
||||
return;
|
||||
}
|
||||
StringBuffer error = executeCommand(getOpenovdCommad() + " -c \"program " +
|
||||
StringBuffer error = executeCommand(getOpenocdCommad() + " -c \"program " +
|
||||
fileName +
|
||||
" verify reset exit 0x08000000\"");
|
||||
if (error.toString().contains(NO_DRIVER_MESSAGE_TAG)) {
|
||||
|
|
Loading…
Reference in New Issue