mirror of https://github.com/rusefi/RomRaider.git
op20 updates
git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@218 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
parent
19f7c552f8
commit
97e589b0dd
|
@ -58,10 +58,10 @@ public final class J2534ConnectionManager implements ConnectionManager {
|
|||
}
|
||||
|
||||
// Send request and wait specified time for response with unknown length
|
||||
public byte[] send(byte[] bytes, long maxWait) {
|
||||
checkNotNull(bytes, "bytes");
|
||||
public byte[] send(byte[] request, long maxWait) {
|
||||
checkNotNull(request, "request");
|
||||
// FIX - should maxWait be connectionProperties.getReadTimeout() ??
|
||||
api.writeMsg(channelId, bytes, maxWait);
|
||||
api.writeMsg(channelId, request, maxWait);
|
||||
return api.readMsg(channelId, maxWait);
|
||||
}
|
||||
|
||||
|
|
|
@ -157,9 +157,9 @@ public final class Old_J2534OpenPort20 implements J2534 {
|
|||
}
|
||||
|
||||
private boolean isResponse(PassThruMessage msg) {
|
||||
if (msg.Timestamp == 0) return false;
|
||||
if (msg.RxStatus == 0x00) return true;
|
||||
if (msg.RxStatus == 0x01) return true;
|
||||
return msg.Timestamp != 0;
|
||||
return msg.RxStatus == 0x01;
|
||||
}
|
||||
|
||||
private PassThruMessage doReadMsg(int channelId) {
|
||||
|
|
Loading…
Reference in New Issue