checkPerformanceLevel NO DATA fix

This commit is contained in:
Marianpol 2021-01-10 18:29:37 +01:00
parent 4963c8a8ec
commit fab55b9543

View File

@ -2061,6 +2061,10 @@ class ELM:
cmd = frameLength + '22' + paramToSend + '1' cmd = frameLength + '22' + paramToSend + '1'
resp = self.send_raw(cmd) 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): for lvl in range(level):
paramToSend += dataids.keys()[lvl] paramToSend += dataids.keys()[lvl]
cmd = '22' + paramToSend cmd = '22' + paramToSend