Omaha #3393 Fix negative k values

Change-Id: I4185fd732eeefd63187ac28f208120aadae49541

Former-commit-id: 67818d5e8f [formerly 785372b564 [formerly b280bee22564ad47981a97ab4777e8013ebb84cd]]
Former-commit-id: 785372b564
Former-commit-id: a8112a7218
This commit is contained in:
Nathan Bowler 2014-12-16 11:01:45 -05:00
parent e3415fa50e
commit 9427a403ac

View file

@ -31,6 +31,7 @@
# ------------ ---------- ----------- --------------------------
# 08/11/2014 3393 nabowle Initial modification. Replaces UEngine
# 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
while i<xLen :
k = array[i+j]
if k<0 : kk += 256
if k<0 : k += 256
if encoding == 0 :
msg += " "+str(k)
elif encoding == 1 :