op20 updates

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@218 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
kascade 2009-02-01 12:33:27 +00:00
parent 19f7c552f8
commit 97e589b0dd
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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) {