diff options
author | Keith Packard <keithp@keithp.com> | 2018-10-20 17:29:36 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-20 17:31:57 -0700 |
commit | 48e221cca00c9f925ff57588dd782842705f7a23 (patch) | |
tree | eb64bb356655472f56589b074b74f1112b63772b /altoslib/AltosHexsym.java | |
parent | 345e3c37a1cf619392b54589bb91b4caf7844810 (diff) |
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>
Diffstat (limited to 'altoslib/AltosHexsym.java')
-rw-r--r-- | altoslib/AltosHexsym.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/altoslib/AltosHexsym.java b/altoslib/AltosHexsym.java index b1323484..a2ba6935 100644 --- a/altoslib/AltosHexsym.java +++ b/altoslib/AltosHexsym.java @@ -24,8 +24,12 @@ public class AltosHexsym { final static long invalid_addr = 0xffffffff; + public String toString() { + return String.format("%s:0x%x", name, address); + } + public AltosHexsym(String name, long address) { this.name = name; this.address = address; } -}
\ No newline at end of file +} |