From fab55b954348142cdb2e094c0bb1296d0d21dd6e Mon Sep 17 00:00:00 2001 From: Marianpol Date: Sun, 10 Jan 2021 18:29:37 +0100 Subject: [PATCH] checkPerformanceLevel NO DATA fix --- pyren/mod_elm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyren/mod_elm.py b/pyren/mod_elm.py index e32515c..5b0cf3e 100644 --- a/pyren/mod_elm.py +++ b/pyren/mod_elm.py @@ -2060,7 +2060,11 @@ class ELM: paramToSend += dataids.keys()[lvl] cmd = frameLength + '22' + paramToSend + '1' resp = self.send_raw(cmd) - else: #send multiframe command for more than 3 dataids + else: # send multiframe command for more than 3 dataids + # Some modules can return NO DATA if multi frame command is sent after some no activity time + # Sending anything before main command usually helps that command to be accepted + self.send_raw ("0322" + dataids.keys()[0] + "1") + for lvl in range(level): paramToSend += dataids.keys()[lvl] cmd = '22' + paramToSend