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