From a9154b433a36d06222ca7d42447130d864472a99 Mon Sep 17 00:00:00 2001 From: Steven Reddie Date: Wed, 13 Sep 2017 22:26:30 -0700 Subject: Corrected offset of firmware version within image [#30] --- tools/hextosyx.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/hextosyx.cpp b/tools/hextosyx.cpp index eb909e4..ec779d5 100644 --- a/tools/hextosyx.cpp +++ b/tools/hextosyx.cpp @@ -105,12 +105,12 @@ static void write_header(intelhex::hex_data& data, std::ofstream& ofs, size_t Ba ofs.put(ID >> 8); ofs.put(ID & 0x7f); - ofs.put(data[BaseAddress + 0x132] >> 4); - ofs.put(data[BaseAddress + 0x132] & 0x0f); - ofs.put(data[BaseAddress + 0x131] >> 4); - ofs.put(data[BaseAddress + 0x131] & 0x0f); - ofs.put(data[BaseAddress + 0x130] >> 4); - ofs.put(data[BaseAddress + 0x130] & 0x0f); + ofs.put(data[BaseAddress + 0x102] >> 4); + ofs.put(data[BaseAddress + 0x102] & 0x0f); + ofs.put(data[BaseAddress + 0x101] >> 4); + ofs.put(data[BaseAddress + 0x101] & 0x0f); + ofs.put(data[BaseAddress + 0x100] >> 4); + ofs.put(data[BaseAddress + 0x100] & 0x0f); ofs.put(0xf7); } @@ -180,4 +180,4 @@ int main(int argc, char *argv[]) ofs.close(); return 0; -} \ No newline at end of file +} -- cgit v1.2.1