projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/ao_stdio: use uint8_t for stdio index
[fw/altos]
/
altoslib
/
AltosRomconfig.java
diff --git
a/altoslib/AltosRomconfig.java
b/altoslib/AltosRomconfig.java
index 8ef1848d0f3c5c8e690113458cea23a170afd4dc..670946582386a3f5412e6881a006bab840aeca46 100644
(file)
--- a/
altoslib/AltosRomconfig.java
+++ b/
altoslib/AltosRomconfig.java
@@
-151,8
+151,8
@@
public class AltosRomconfig implements AltosUnitInfoListener {
try {
version = get_int(hexfile, ao_romconfig_version, 2, adjust);
check = get_int(hexfile, ao_romconfig_check, 2, adjust);
try {
version = get_int(hexfile, ao_romconfig_version, 2, adjust);
check = get_int(hexfile, ao_romconfig_check, 2, adjust);
- System.out.printf("adjust %d version %x check %x\n", adjust, version, check);
if (check == (~version & 0xffff)) {
if (check == (~version & 0xffff)) {
+ System.out.printf("adjust %d version %x check %x success\n", adjust, version, check);
switch (version) {
case 2:
case 1:
switch (version) {
case 2:
case 1:
@@
-177,9
+177,11
@@
public class AltosRomconfig implements AltosUnitInfoListener {
break;
}
break;
break;
}
break;
+ } else {
+ System.out.printf("adjust %d version %x check %x fail\n", adjust, version, check);
}
} catch (ArrayIndexOutOfBoundsException aie) {
}
} catch (ArrayIndexOutOfBoundsException aie) {
- System.out.printf("adjust %d
failed
\n", adjust);
+ System.out.printf("adjust %d
out of bounds
\n", adjust);
continue;
}
}
continue;
}
}