unknown dataId fix
This commit is contained in:
parent
3f23d862a7
commit
2c2e10abd9
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -82,6 +82,8 @@ def get_SnapShotMnemonic(m, se, elm, dataids):
|
|||||||
for x in range(numberOfIdentifiers):
|
for x in range(numberOfIdentifiers):
|
||||||
dataId = resp[posInResp:posInResp + 2*3].replace(" ", "")
|
dataId = resp[posInResp:posInResp + 2*3].replace(" ", "")
|
||||||
posInResp += 2*3
|
posInResp += 2*3
|
||||||
|
if dataId not in dataids.keys():
|
||||||
|
continue
|
||||||
didDataLength = int(dataids[dataId].dataBitLength)/8
|
didDataLength = int(dataids[dataId].dataBitLength)/8
|
||||||
didData = resp[posInResp: posInResp + didDataLength*3]
|
didData = resp[posInResp: posInResp + didDataLength*3]
|
||||||
posInResp += didDataLength*3
|
posInResp += didDataLength*3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user