minor console usability improvement: not adding "set date" into recent commands list
This commit is contained in:
parent
95a0d86a33
commit
7b0b7465ce
|
@ -34,6 +34,10 @@ public class IoUtil {
|
|||
sendCommand(command, CommandQueue.DEFAULT_TIMEOUT, commandQueue);
|
||||
}
|
||||
|
||||
public static String getSetCommand(String settingName) {
|
||||
return Fields.CMD_SET + " " + settingName;
|
||||
}
|
||||
|
||||
public static String getEnableCommand(String settingName) {
|
||||
return Fields.CMD_ENABLE + " " + settingName;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.net.URL;
|
|||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
public class rusEFIVersion {
|
||||
public static final int CONSOLE_VERSION = 20210831;
|
||||
public static final int CONSOLE_VERSION = 20210906;
|
||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||
|
||||
public static long classBuildTimeMillis() {
|
||||
|
|
|
@ -18,9 +18,9 @@ import java.util.*;
|
|||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import static com.rusefi.IoUtil.getEnableCommand;
|
||||
import static com.rusefi.IoUtil.*;
|
||||
import static com.rusefi.config.generated.Fields.CMD_DATE;
|
||||
import static com.rusefi.config.generated.Fields.CMD_TRIGGERINFO;
|
||||
import static com.rusefi.IoUtil.getDisableCommand;
|
||||
import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
||||
|
||||
/**
|
||||
|
@ -155,6 +155,10 @@ public class RecentCommands {
|
|||
}
|
||||
|
||||
public void add(String command) {
|
||||
if (command.startsWith(getSetCommand(CMD_DATE))) {
|
||||
// not useful to remember this one
|
||||
return;
|
||||
}
|
||||
synchronized (entries) {
|
||||
entries.put(new Entry(command), null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue