fix console F7 flashing blinking fix #3852

This commit is contained in:
rusefillc 2022-02-15 23:36:29 -05:00
parent ed162f83ba
commit c0aacc3921
2 changed files with 7 additions and 3 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 = 20220213;
public static final int CONSOLE_VERSION = 20220215;
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
public static long classBuildTimeMillis() {

View File

@ -188,11 +188,15 @@ public class StartupFrame {
JPanel rightPanel = new JPanel(new VerticalFlowLayout());
if (Autoupdate.readBundleFullNameNotNull().contains("proteus_f7")) {
URLLabel urlLabel = new URLLabel("WARNING: Proteus F7", "https://github.com/rusefi/rusefi/wiki/F7-requires-full-erase");
String text = "WARNING: Proteus F7";
URLLabel urlLabel = new URLLabel(text, "https://github.com/rusefi/rusefi/wiki/F7-requires-full-erase");
Color originalColor = urlLabel.getForeground();
new Timer(500, new ActionListener() {
int counter;
@Override
public void actionPerformed(ActionEvent e) {
urlLabel.setVisible(!urlLabel.isVisible());
// URL color is hard-coded, let's blink isUnderlined attribute as second best option
urlLabel.setText(text, counter++ % 2 == 0);
}
}).start();
rightPanel.add(urlLabel);