Skip to content

Commit fc3a880

Browse files
committed
Land rapid7#8214, Fix ELM327 ISOTP commands
2 parents f90911e + 910d34a commit fc3a880

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/hardware/elm327_relay.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ def isotpsend_and_wait(srcid, dstid, data, timeout, maxpkts)
269269
result["success"] = false
270270
srcid = "%03X" % srcid.to_i(16)
271271
dstid = "%03X" % dstid.to_i(16)
272-
send_cmd("ATMCAF1") # Turn on ISO-TP formatting
272+
send_cmd("ATCAF1") # Turn on ISO-TP formatting
273273
send_cmd("ATR1") # Turn on responses
274-
send_cmd("ATSTH#{srcid}") # Src Header
274+
send_cmd("ATSH#{srcid}") # Src Header
275275
send_cmd("ATCRA#{dstid}") # Resp Header
276276
send_cmd("ATCFC1") # Enable flow control
277277
resp = send_cmd(data)

0 commit comments

Comments
 (0)