console flasher flexibility
This commit is contained in:
parent
acc7b30d5d
commit
0c89cd1138
|
@ -45,7 +45,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
|||
* @see EngineSnifferPanel
|
||||
*/
|
||||
public class Launcher {
|
||||
public static final int CONSOLE_VERSION = 20190205;
|
||||
public static final int CONSOLE_VERSION = 20190221;
|
||||
public static final boolean SHOW_STIMULATOR = false;
|
||||
private static final String TAB_INDEX = "main_tab";
|
||||
protected static final String PORT_KEY = "port";
|
||||
|
|
|
@ -20,6 +20,7 @@ import java.awt.event.ActionEvent;
|
|||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
@ -131,8 +132,14 @@ public class StartupFrame {
|
|||
|
||||
if (ProcessStatusWindow.isWindows()) {
|
||||
realHardwarePanel.add(new HorizontalLine());
|
||||
realHardwarePanel.add(new FirmwareFlasher(FirmwareFlasher.IMAGE_DEBUG_FILE, "Program Firmware/Debug").getButton());
|
||||
realHardwarePanel.add(new FirmwareFlasher(FirmwareFlasher.IMAGE_RELEASE_FILE, "Program Firmware/Release").getButton());
|
||||
if (new File(FirmwareFlasher.IMAGE_FILE).exists()) {
|
||||
// for F7 builds we just build one file at the moment
|
||||
realHardwarePanel.add(new FirmwareFlasher(FirmwareFlasher.IMAGE_FILE, "Program Firmware").getButton());
|
||||
} else {
|
||||
// 407 build
|
||||
realHardwarePanel.add(new FirmwareFlasher(FirmwareFlasher.IMAGE_DEBUG_FILE, "Program Firmware/Debug").getButton());
|
||||
realHardwarePanel.add(new FirmwareFlasher(FirmwareFlasher.IMAGE_RELEASE_FILE, "Program Firmware/Release").getButton());
|
||||
}
|
||||
realHardwarePanel.add(new EraseChip().getButton());
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import java.io.File;
|
|||
* 2/4/15
|
||||
*/
|
||||
public class FirmwareFlasher extends ProcessStatusWindow {
|
||||
public static final String IMAGE_FILE = "rusefi.bin";
|
||||
public static final String IMAGE_DEBUG_FILE = "rusefi_debug.bin";
|
||||
public static final String IMAGE_RELEASE_FILE = "rusefi_release.bin";
|
||||
static final String OPENOCD_EXE = "openocd/openocd.exe";
|
||||
|
|
Loading…
Reference in New Issue