erase is a lengthy operation let's signal end

This commit is contained in:
rusefi 2022-02-15 23:07:51 -05:00
parent a021a2e7a3
commit 83d69f4f7a
1 changed files with 8 additions and 3 deletions

View File

@ -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() {