diff --git a/firmware/config/engines/dodge_ram.cpp b/firmware/config/engines/dodge_ram.cpp index 73638fb210..4ed6038d5c 100644 --- a/firmware/config/engines/dodge_ram.cpp +++ b/firmware/config/engines/dodge_ram.cpp @@ -72,7 +72,8 @@ void setDodgeRam1996(DECLARE_ENGINE_PARAMETER_F) { boardConfiguration->idle.solenoidFrequency = 300; engineConfiguration->vbattAdcChannel = EFI_ADC_14; - engineConfiguration->vbattDividerCoeff = ((float) (9.02 + 41.1)) / 9.02 * 2; +// engineConfiguration->vbattDividerCoeff = ((float) (8.93 + 41.27)) / 8.93 * 2; + engineConfiguration->vbattDividerCoeff = 9.6; setDodgeSensor(&engineConfiguration->clt); engineConfiguration->clt.bias_resistor = 2700; diff --git a/java_console/ui/resources/com/rusefi/undo.jpg b/java_console/ui/resources/com/rusefi/undo.jpg index 2439e5cf31..7b3cc60657 100644 Binary files a/java_console/ui/resources/com/rusefi/undo.jpg and b/java_console/ui/resources/com/rusefi/undo.jpg differ diff --git a/java_console/ui/src/com/rusefi/ui/RecentCommands.java b/java_console/ui/src/com/rusefi/ui/RecentCommands.java index 126f04dedd..1aa74afc82 100644 --- a/java_console/ui/src/com/rusefi/ui/RecentCommands.java +++ b/java_console/ui/src/com/rusefi/ui/RecentCommands.java @@ -24,7 +24,7 @@ public class RecentCommands { private static final String KEY = "recent_commands"; private static final String DELIMETER = "|"; - private final JPanel content = new JPanel(new GridLayout(NUMBER_OF_COMMANDS, 1)); + private final JPanel content = new JPanel(new GridLayout(NUMBER_OF_COMMANDS + 1, 1)); private final LinkedHashMap entries = new LinkedHashMap() { @Override @@ -78,9 +78,8 @@ public class RecentCommands { add("sparkbench 5 400 2"); add("fuelbench 5 400 2"); - add("fuelpumpbench"); - add("fanbench"); - add("milbench"); + add("altinfo"); + add("accelinfo"); } public void add(String command) { @@ -92,8 +91,21 @@ public class RecentCommands { @Override public void run() { content.removeAll(); + JButton reset = new JButton(UiUtils.loadIcon("undo.jpg")); + reset.setContentAreaFilled(false); + reset.setFocusPainted(false); + reset.setBorder(BorderFactory.createEmptyBorder()); + content.add(UiUtils.wrap(reset)); + reset.addActionListener(new ActionListener() { + @Override + public void actionPerformed(ActionEvent e) { + entries.clear(); + addDefaults(); + } + }); + synchronized (entries) { - Set sorted = new TreeSet(); + Set sorted = new TreeSet<>(); sorted.addAll(entries.keySet()); for (Entry entry : sorted) {