minor usability whistle

This commit is contained in:
rusefillc 2022-11-27 09:50:26 -05:00
parent ee84738774
commit 5ea649cc3b
3 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import java.net.URL;
import java.util.concurrent.atomic.AtomicReference;
public class rusEFIVersion {
public static final int CONSOLE_VERSION = 20221111;
public static final int CONSOLE_VERSION = 20221127;
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
public static long classBuildTimeMillis() {

View File

@ -155,6 +155,7 @@ public class DfuFlasher {
// looks like sometimes we are not catching the last line of the response? 'Upgrade' happens before 'Verify'
wnd.append("SUCCESS!");
wnd.append("Please power cycle device to exit DFU mode");
wnd.setSuccessState();
} else if (stdout.toString().contains("Target device not found")) {
wnd.append("ERROR: Device not connected or STM32 Bootloader driver not installed?");
appendWindowsVersion(wnd);

View File

@ -60,6 +60,10 @@ public class StatusWindow implements StatusConsumer {
copyContentToClipboard();
}
public void setSuccessState() {
logTextArea.setBackground(LIGHT_GREEN);
}
public JFrame getFrame() {
return frameHelper.getFrame();
}