Omaha #3393 Fix negative k values
Change-Id: I4185fd732eeefd63187ac28f208120aadae49541 Former-commit-id:67818d5e8f
[formerly785372b564
[formerly b280bee22564ad47981a97ab4777e8013ebb84cd]] Former-commit-id:785372b564
Former-commit-id:a8112a7218
This commit is contained in:
parent
e3415fa50e
commit
9427a403ac
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