THCI: fix process line count issue in getCommissioningLogs method (#1266)

This commit is contained in:
Shu Chen
2017-02-07 05:41:35 -08:00
committed by Jonathan Hui
parent 6f169e9702
commit 82df0a5457
+2 -1
View File
@@ -2037,8 +2037,9 @@ class OpenThread(IThci):
else PlatformDiagnosticPacket_Type.JOIN_ENT_rsp if 'JOIN_ENT.rsp' in infoValue \
else PlatformDiagnosticPacket_Type.UNKNOWN
elif "len" in infoType:
bytesInEachLine = 16
EncryptedPacket.TLVsLength = int(infoValue)
payloadLineCount = int(infoValue)/16 + 1
payloadLineCount = (int(infoValue) + bytesInEachLine - 1)/bytesInEachLine
while payloadLineCount > 0:
payloadLineCount = payloadLineCount - 1
payloadLine = rawLogs.get()