Land #8214, Fix ELM327 ISOTP commands

bug/bundler_fix
Pearce Barry 2017-04-19 15:05:12 -05:00
commit fc3a880c0d
No known key found for this signature in database
GPG Key ID: 0916F4DEA5C5DE0A
1 changed files with 2 additions and 2 deletions

View File

@ -269,9 +269,9 @@ module ELM327HWBridgeRelay
result["success"] = false
srcid = "%03X" % srcid.to_i(16)
dstid = "%03X" % dstid.to_i(16)
send_cmd("ATMCAF1") # Turn on ISO-TP formatting
send_cmd("ATCAF1") # Turn on ISO-TP formatting
send_cmd("ATR1") # Turn on responses
send_cmd("ATSTH#{srcid}") # Src Header
send_cmd("ATSH#{srcid}") # Src Header
send_cmd("ATCRA#{dstid}") # Resp Header
send_cmd("ATCFC1") # Enable flow control
resp = send_cmd(data)