mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 09:59:52 +00:00
THCI: fix process line count issue in getCommissioningLogs method (#1266)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user