projects
/
renesas-ra-flasher
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c098b4
)
RAPacker.py: fix high byte pkt len
author
Robin Krens
<robin@robinkrens.nl>
Sun, 11 Feb 2024 14:16:32 +0000
(15:16 +0100)
committer
Robin Krens
<robin@robinkrens.nl>
Sun, 11 Feb 2024 14:16:32 +0000
(15:16 +0100)
src/RAPacker.py
patch
|
blob
|
history
diff --git
a/src/RAPacker.py
b/src/RAPacker.py
index
6652309
..
a72970d
100644
(file)
--- a/
src/RAPacker.py
+++ b/
src/RAPacker.py
@@
-63,7
+63,7
@@
TESTID = [
def calc_sum(cmd, data):
data_len = len(data)
- lnh =
data_len + 1 & 0xFF00
+ lnh =
(data_len + 1 & 0xFF00) >> 8
lnl = data_len + 1 & 0x00FF
res = lnh + lnl + cmd
for i in range(data_len):