altoslib: When flashing hardware, pull USB data from device if needed
authorKeith Packard <keithp@keithp.com>
Sun, 21 Oct 2018 00:29:36 +0000 (17:29 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 21 Oct 2018 00:31:57 +0000 (17:31 -0700)
commit48e221cca00c9f925ff57588dd782842705f7a23
treeeb64bb356655472f56589b074b74f1112b63772b
parent345e3c37a1cf619392b54589bb91b4caf7844810
altoslib: When flashing hardware, pull USB data from device if needed

If we fail to extract USB vid/pid and product values from the device
ROM, use the data discovered over USB when the device was originally
discovered.

Also, use the USB product to select appropriate .ihx files instead of
only using the USB vid/pid. This will help people avoid using the
wrong file when reflashing devices.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosFlash.java
altoslib/AltosHexsym.java
altoslib/AltosProgrammer.java
altoslib/AltosRomconfig.java
altoslib/AltosSelfFlash.java
altosuilib/AltosDeviceUIDialog.java
altosuilib/AltosFlashUI.java
altosuilib/AltosUSBDevice.java