summaryrefslogtreecommitdiffstats
path: root/src/uds
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-20 21:41:25 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-20 21:41:25 -0500
commitbd9026391e3c9c107cc6247fbad40da81fd1c2f9 (patch)
tree66182e173b62962cf7a6dc8ff0afb8ff346a4821 /src/uds
parentfed7c4cae3d8dd1a53d0b394f6abcfa9f8c30a64 (diff)
Don't try and rx broadcast response on all handles after one completes.
Diffstat (limited to 'src/uds')
-rw-r--r--src/uds/uds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/uds/uds.c b/src/uds/uds.c
index b3f2cdad..5d41582d 100644
--- a/src/uds/uds.c
+++ b/src/uds/uds.c
@@ -204,8 +204,6 @@ DiagnosticResponse diagnostic_receive_can_frame(DiagnosticShims* shims,
IsoTpMessage message = isotp_continue_receive(&handle->isotp_shims,
&handle->isotp_receive_handles[i], arbitration_id, data, size);
- // TODO as of now we're completing the handle as soon as one
- // broadcast response is received....need to hang on for 100ms
if(message.completed) {
if(message.size > 0) {
response.mode = message.payload[0];
@@ -237,6 +235,10 @@ DiagnosticResponse diagnostic_receive_can_frame(DiagnosticShims* shims,
if(handle->completed && handle->callback != NULL) {
handle->callback(&response);
}
+
+ // TODO as of now we're completing the handle as soon as one
+ // broadcast response is received....need to hang on for 100ms
+ break;
}
}
}