Omaha #3393 Fix negative k values

Change-Id: I4185fd732eeefd63187ac28f208120aadae49541

Former-commit-id: a8112a7218 [formerly 785372b564] [formerly 67818d5e8f [formerly b280bee22564ad47981a97ab4777e8013ebb84cd]]
Former-commit-id: 67818d5e8f
Former-commit-id: 6d514deeda
This commit is contained in:
Nathan Bowler 2014-12-16 11:01:45 -05:00
parent 3693ce5f1a
commit c96ed32e94

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 :