- fix in launcher
 - check bytescount
This commit is contained in:
PyRen 2018-11-25 15:28:36 +00:00
parent cc33387543
commit 806f2d0dca
5 changed files with 9 additions and 1 deletions

View File

@ -55,7 +55,7 @@ if osname == 'android':
import pip import pip
except ImportError: except ImportError:
pass pass
pip.main(['install', 'pyjnius-u4-qpython']) #pip.main(['install', 'pyjnius-u4-qpython'])
if jnius_mode: if jnius_mode:
try: try:

0
pyren/CHANGE_LOG.txt Normal file → Executable file
View File

0
pyren/README.md Normal file → Executable file
View File

0
pyren/macro/init.txt Normal file → Executable file
View File

View File

@ -731,6 +731,12 @@ class DDTECU():
if len(hexval)%2: if len(hexval)%2:
hexval = '0'+hexval hexval = '0'+hexval
#check bytescount
if len(hexval)/2 < d.BytesCount:
hexval = '00'*(d.BytesCount-len(hexval)/2) + hexval
#debug
#print '#', d.BytesCount, ':', hexval
#revert byte order if little endian #revert byte order if little endian
if littleEndian: if littleEndian:
a = hexval a = hexval
@ -855,6 +861,8 @@ class DDTECU():
break break
if rcmd == '': if rcmd == '':
#debug
print res, d, self.req4data.keys ()
return 'ERROR' return 'ERROR'
if self.datas[d].BytesASCII: if self.datas[d].BytesASCII: