From 0b1bcfa0c3bc2b2788c4aa1ce54dc18cd3b5c9e9 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Sat, 3 Sep 2022 12:49:17 +0200 Subject: [PATCH] Switch to response length prediction based on actual response data --- pyren/mod_elm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyren/mod_elm.py b/pyren/mod_elm.py index e309f2f..351344b 100644 --- a/pyren/mod_elm.py +++ b/pyren/mod_elm.py @@ -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: