Skip to content

Commit

Permalink
Fix scan CanLine
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricp committed Jul 3, 2018
1 parent e574ab2 commit 4e9eccc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ddt4all.py
Expand Up @@ -698,7 +698,7 @@ def scan(self):

self.ecu_scan.clear()
if scancan:
self.ecu_scan.scan(self.progressstatus, self.infostatus, self.canlinecombo.currentIndex())
self.ecu_scan.scan(self.progressstatus, self.infostatus, None, self.canlinecombo.currentIndex())
if scankwp:
self.ecu_scan.scan_kwp(self.progressstatus, self.infostatus)

Expand Down
3 changes: 2 additions & 1 deletion elm.py
Expand Up @@ -689,7 +689,8 @@ def cmd(self, command, serviceDelay="0"):

# Ensure time gap between commands
dl = self.busLoad + self.srvsDelay - tb + self.lastCMDtime
if ((tb - self.lastCMDtime) < (self.busLoad + self.srvsDelay)) and "AT" not in command.upper():
if ((tb - self.lastCMDtime) < (self.busLoad + self.srvsDelay)) \
and ("AT" not in command.upper() or "ST" not in command.upper()):
time.sleep(self.busLoad + self.srvsDelay - tb + self.lastCMDtime)

tb = time.time() # renew start time
Expand Down
2 changes: 1 addition & 1 deletion parameters.py
Expand Up @@ -86,7 +86,7 @@ def tester_send(self):
if self.tester_presend_command == "":
return

# No need to send "tester_present" command if we're updating
# No need to send "tester_present" command if we're auto updating
if options.auto_refresh:
return

Expand Down

0 comments on commit 4e9eccc

Please sign in to comment.