summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-02-15 19:49:42 +0100
committerMichael Buesch <mb@bu3sch.de>2010-02-15 19:49:42 +0100
commite53bc13c41d163ff851e3346a3611a43c63d9b3f (patch)
tree1feeb10ed066d4c42322737e12722041b82e0f5c /toprammer
parentcbadb5746ba8a1e5d6667de40a7b571728768b1b (diff)
downloadtoprammer-e53bc13c41d163ff851e3346a3611a43c63d9b3f.tar.xz
toprammer-e53bc13c41d163ff851e3346a3611a43c63d9b3f.zip
Fix typo
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer2
1 files changed, 1 insertions, 1 deletions
diff --git a/toprammer b/toprammer
index b1da4e1..ab20ee8 100755
--- a/toprammer
+++ b/toprammer
@@ -549,7 +549,7 @@ class IO_ihex:
checksum = 0
ihex.append(":%02X%04X%02X" % (2, 0, self.TYPE_ELAR))
checksum += 2 + 0 + 0 + self.TYPE_ELAR
- a = (addr >> 16) & 0xFF
+ a = (addr >> 16) & 0xFFFF
ihex.append("%04X" % a)
checksum += ((a >> 8) & 0xFF) + (a & 0xFF)
checksum = ((checksum ^ 0xFF) + 1) & 0xFF
bues.ch cgit interface