erase is a lengthy operation let's signal end
This commit is contained in:
parent
06791cf825
commit
ed162f83ba
|
@ -14,6 +14,7 @@ import org.jetbrains.annotations.NotNull;
|
|||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -111,9 +112,13 @@ public class DfuFlasher {
|
|||
|
||||
public static void runDfuErase() {
|
||||
StatusWindow wnd = createStatusWindow();
|
||||
submitAction(() -> ExecHelper.executeCommand(DFU_BINARY_LOCATION,
|
||||
getDfuEraseCommand(),
|
||||
DFU_BINARY, wnd, new StringBuffer()));
|
||||
submitAction(() -> {
|
||||
ExecHelper.executeCommand(DFU_BINARY_LOCATION,
|
||||
getDfuEraseCommand(),
|
||||
DFU_BINARY, wnd, new StringBuffer());
|
||||
// it's a lengthy operation let's signal end
|
||||
Toolkit.getDefaultToolkit().beep();
|
||||
});
|
||||
}
|
||||
|
||||
public static void runDfuProgramming() {
|
||||
|
|
Loading…
Reference in New Issue