Skip to content

Commit

Permalink
Fix data1 location
Browse files Browse the repository at this point in the history
  • Loading branch information
pjonsson committed Sep 3, 2023
1 parent 653784f commit 758f199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/org/contikios/cooja/contikimote/ContikiMoteType.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ public boolean loadMoteFirmware(boolean vis) throws MoteTypeCreationException {
var old = entry.getValue();
offsetVariables.put(entry.getKey(), new Symbol(old.type, old.name, old.addr + offset, old.size));
}
logger.info("data1: " + Long.toHexString(dataSecParser.getDataStartAddr()) + " size: " + Integer.toHexString(dataSecParser.getDataSize()));
var secOffset = useCommand ? offset : 0;
logger.info("data1: " + Long.toHexString(dataSecParser.getDataStartAddr() + secOffset) + " size: " + Integer.toHexString(dataSecParser.getDataSize()));
initialMemory = new SectionMoteMemory(offsetVariables);
initialMemory.addMemorySection("data",
getMemory(dataSecParser.getDataStartAddr() + secOffset, dataSecParser.getDataSize(), offsetVariables));
Expand Down

0 comments on commit 758f199

Please sign in to comment.