altoslib: Use symbols in AltosRomconfig instead of fixed offsets
[fw/altos] / altoslib / AltosDebug.java
index 76c13d57a399187079d9d4f0820eaedf4a36fa22..8faab03bdc19a406d0362fd90a731162ac9466fd 100644 (file)
@@ -260,7 +260,8 @@ public class AltosDebug {
        public AltosRomconfig romconfig() {
                try {
                        byte[] bytes = read_memory(0xa0, 10);
-                       return new AltosRomconfig(bytes, 0);
+                       AltosHexfile hexfile = new AltosHexfile (bytes, 0xa0);
+                       return new AltosRomconfig(hexfile);
                } catch (IOException ie) {
                } catch (InterruptedException ie) {
                }