Update obd_io.py
authorGökhan Kurt <kurtng@hotmail.com>
Mon, 10 Aug 2015 12:53:11 +0000 (14:53 +0200)
committerGökhan Kurt <kurtng@hotmail.com>
Mon, 10 Aug 2015 12:53:11 +0000 (14:53 +0200)
obd_io.py

index 7dd6d1c..7a2e243 100644 (file)
--- a/obd_io.py
+++ b/obd_io.py
@@ -107,6 +107,8 @@ class OBDPort:
          wx.PostEvent(self._notify_window, DebugEvent([2,"atz response:" + self.ELMver]))
          self.send_command("ate0")  # echo off
          wx.PostEvent(self._notify_window, DebugEvent([2,"ate0 response:" + self.get_result()]))
+         self.send_command("ATSP0")  # select protocol automatically
+         wx.PostEvent(self._notify_window, DebugEvent([2,"ATSP0 response:" + self.get_result()]))
          self.send_command("0100")
          ready = self.get_result()
          wx.PostEvent(self._notify_window, DebugEvent([2,"0100 response:" + ready]))