Omaha #3393 Fix negative k values
Change-Id: I4185fd732eeefd63187ac28f208120aadae49541 Former-commit-id:9427a403ac
[formerlya8112a7218
] [formerly785372b564
] [formerly9427a403ac
[formerlya8112a7218
] [formerly785372b564
] [formerly67818d5e8f
[formerly785372b564
[formerly b280bee22564ad47981a97ab4777e8013ebb84cd]]]] Former-commit-id:67818d5e8f
Former-commit-id:1a132cedcc
[formerlyc96ed32e94
] [formerly 64e7b31e414b418568bf87b7fabd019a379c29cf [formerly6d514deeda
]] Former-commit-id: 3bcc7ad07f557cd07a69f5125a437a95561df184 [formerly503e45d730
] Former-commit-id:d0a9a1dfbb
This commit is contained in:
parent
25675883e6
commit
bd95005915
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
||||||
# ------------ ---------- ----------- --------------------------
|
# ------------ ---------- ----------- --------------------------
|
||||||
# 08/11/2014 3393 nabowle Initial modification. Replaces UEngine
|
# 08/11/2014 3393 nabowle Initial modification. Replaces UEngine
|
||||||
# with a custom Request/Response.
|
# with a custom Request/Response.
|
||||||
|
# 12/16/2014 3393 nabowle Fix negative k values.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -137,7 +138,7 @@ def encode_data(yLen, xLen, array, encoding):
|
||||||
i += 1
|
i += 1
|
||||||
while i<xLen :
|
while i<xLen :
|
||||||
k = array[i+j]
|
k = array[i+j]
|
||||||
if k<0 : kk += 256
|
if k<0 : k += 256
|
||||||
if encoding == 0 :
|
if encoding == 0 :
|
||||||
msg += " "+str(k)
|
msg += " "+str(k)
|
||||||
elif encoding == 1 :
|
elif encoding == 1 :
|
||||||
|
|
Loading…
Add table
Reference in a new issue