You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifdidnotindidconfig: # Already checked in check_did_config. Paranoid check
58
+
raiseConfigError(key=did, msg='Actual data identifier configuration contains no definition for data identifier 0x%04x'%did)
59
+
60
+
codec=DidCodec.from_config(didconfig[did])
61
+
try:
62
+
length=len(codec)
63
+
ifdid_reading_all_dataisnotNone:
64
+
raiseValueError('Did 0x%04X is configured to read the rest of the payload (__len__ raisong ReadAllRemainingData), but a subsequent DID is requested (0x%04x)'% (did_reading_all_data, did))
65
+
exceptDidCodec.ReadAllRemainingData:
66
+
ifdid_reading_all_dataisnotNone:
67
+
raiseValueError('It is impossible to read 2 DIDs configured to read the rest of the payload (__len__ raising ReadAllRemainingData). Dids are : 0x%04X and 0x%04X'% (did_reading_all_data, did))
68
+
did_reading_all_data=did
69
+
52
70
req.data=struct.pack('>'+'H'*len(didlist), *didlist) #Encode list of DID
0 commit comments