Switch to response length prediction based on actual response data

This commit is contained in:
Marianpol 2022-09-03 12:49:17 +02:00
parent f1132cae05
commit 0b1bcfa0c3

View File

@ -2170,7 +2170,7 @@ class ELM:
if not any(s in resp for s in ['?', 'NR']):
# add it to the list
param_to_send += did
predicted_response_length += len(did) + int(dataids[did].dataBitLength)/4
predicted_response_length += len(self.getFromCache('22' + did).replace(' ', '')) - 2
# if module does not support any did, we cannot check performance level
if not param_to_send: