only:extract method
This commit is contained in:
parent
bdfb4ae25e
commit
c225cea734
|
@ -120,14 +120,18 @@ public class DfuFlasher {
|
|||
public static void runDfuErase() {
|
||||
StatusWindow wnd = createStatusWindow();
|
||||
submitAction(() -> {
|
||||
ExecHelper.executeCommand(DFU_BINARY_LOCATION,
|
||||
getDfuEraseCommand(),
|
||||
DFU_BINARY, wnd, new StringBuffer());
|
||||
runDfuErase(wnd);
|
||||
// it's a lengthy operation let's signal end
|
||||
Toolkit.getDefaultToolkit().beep();
|
||||
});
|
||||
}
|
||||
|
||||
private static void runDfuErase(StatusWindow wnd) {
|
||||
ExecHelper.executeCommand(DFU_BINARY_LOCATION,
|
||||
getDfuEraseCommand(),
|
||||
DFU_BINARY, wnd, new StringBuffer());
|
||||
}
|
||||
|
||||
public static void runDfuProgramming() {
|
||||
StatusWindow wnd = createStatusWindow();
|
||||
submitAction(() -> executeDFU(wnd));
|
||||
|
|
Loading…
Reference in New Issue