mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 14:57:38 +00:00
[style] bump yapf version to 0.31.0 (#6434)
This commit is contained in:
@@ -2246,12 +2246,11 @@ class OpenThreadTHCI(object):
|
||||
if 'recv' in infoValue else PlatformDiagnosticPacket_Direction.OUT if
|
||||
'send' in infoValue else PlatformDiagnosticPacket_Direction.UNKNOWN)
|
||||
elif 'type' in infoType:
|
||||
EncryptedPacket.Type = (PlatformDiagnosticPacket_Type.JOIN_FIN_req
|
||||
if 'JOIN_FIN.req' in infoValue else
|
||||
PlatformDiagnosticPacket_Type.JOIN_FIN_rsp if 'JOIN_FIN.rsp' in infoValue
|
||||
else PlatformDiagnosticPacket_Type.JOIN_ENT_req if 'JOIN_ENT.ntf' in
|
||||
infoValue else PlatformDiagnosticPacket_Type.JOIN_ENT_rsp if 'JOIN_ENT.rsp'
|
||||
in infoValue else PlatformDiagnosticPacket_Type.UNKNOWN)
|
||||
EncryptedPacket.Type = (PlatformDiagnosticPacket_Type.JOIN_FIN_req if 'JOIN_FIN.req' in infoValue
|
||||
else PlatformDiagnosticPacket_Type.JOIN_FIN_rsp if 'JOIN_FIN.rsp'
|
||||
in infoValue else PlatformDiagnosticPacket_Type.JOIN_ENT_req if
|
||||
'JOIN_ENT.ntf' in infoValue 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)
|
||||
|
||||
@@ -2149,12 +2149,11 @@ class OpenThread_WpanCtl(IThci):
|
||||
if 'recv' in infoValue else PlatformDiagnosticPacket_Direction.OUT if
|
||||
'send' in infoValue else PlatformDiagnosticPacket_Direction.UNKNOWN)
|
||||
elif 'type' in infoType:
|
||||
EncryptedPacket.Type = (PlatformDiagnosticPacket_Type.JOIN_FIN_req
|
||||
if 'JOIN_FIN.req' in infoValue else
|
||||
PlatformDiagnosticPacket_Type.JOIN_FIN_rsp if 'JOIN_FIN.rsp' in infoValue
|
||||
else PlatformDiagnosticPacket_Type.JOIN_ENT_req if 'JOIN_ENT.ntf' in
|
||||
infoValue else PlatformDiagnosticPacket_Type.JOIN_ENT_rsp if 'JOIN_ENT.rsp'
|
||||
in infoValue else PlatformDiagnosticPacket_Type.UNKNOWN)
|
||||
EncryptedPacket.Type = (PlatformDiagnosticPacket_Type.JOIN_FIN_req if 'JOIN_FIN.req' in infoValue
|
||||
else PlatformDiagnosticPacket_Type.JOIN_FIN_rsp if 'JOIN_FIN.rsp'
|
||||
in infoValue else PlatformDiagnosticPacket_Type.JOIN_ENT_req if
|
||||
'JOIN_ENT.ntf' in infoValue 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)
|
||||
|
||||
Reference in New Issue
Block a user