diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-24 20:45:42 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-24 20:46:02 -0500 |
commit | 4d19569cb3690edad012ed8f3b33cff142274881 (patch) | |
tree | 568ec261014ffa68549ebc0bbd331b0e2de0be26 /src | |
parent | bd9026391e3c9c107cc6247fbad40da81fd1c2f9 (diff) |
Wrap lines at 80 characters.
Diffstat (limited to 'src')
-rw-r--r-- | src/uds/uds.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/uds/uds.c b/src/uds/uds.c index 5d41582d..1a52db1e 100644 --- a/src/uds/uds.c +++ b/src/uds/uds.c @@ -36,7 +36,8 @@ static void setup_receive_handle(DiagnosticRequestHandle* handle) { for(response_id = 0; response_id < OBD2_FUNCTIONAL_RESPONSE_COUNT; ++response_id) { handle->isotp_receive_handles[response_id] = isotp_receive( - &handle->isotp_shims, OBD2_FUNCTIONAL_RESPONSE_START + response_id, + &handle->isotp_shims, + OBD2_FUNCTIONAL_RESPONSE_START + response_id, NULL); } handle->isotp_receive_handle_count = OBD2_FUNCTIONAL_RESPONSE_COUNT; @@ -48,7 +49,6 @@ static void setup_receive_handle(DiagnosticRequestHandle* handle) { } } - DiagnosticRequestHandle diagnostic_request(DiagnosticShims* shims, DiagnosticRequest* request, DiagnosticResponseReceived callback) { DiagnosticRequestHandle handle = { @@ -137,7 +137,8 @@ static bool handle_negative_response(IsoTpMessage* message, } if(message->size > NEGATIVE_RESPONSE_NRC_INDEX) { - response->negative_response_code = message->payload[NEGATIVE_RESPONSE_NRC_INDEX]; + response->negative_response_code = + message->payload[NEGATIVE_RESPONSE_NRC_INDEX]; } response->success = false; @@ -202,7 +203,8 @@ DiagnosticResponse diagnostic_receive_can_frame(DiagnosticShims* shims, uint8_t i; for(i = 0; i < handle->isotp_receive_handle_count; ++i) { IsoTpMessage message = isotp_continue_receive(&handle->isotp_shims, - &handle->isotp_receive_handles[i], arbitration_id, data, size); + &handle->isotp_receive_handles[i], arbitration_id, data, + size); if(message.completed) { if(message.size > 0) { @@ -212,8 +214,8 @@ DiagnosticResponse diagnostic_receive_can_frame(DiagnosticShims* shims, response.mode, response.arbitration_id); handle->success = true; handle->completed = true; - } else if(handle_positive_response(handle, &message, &response, - shims)) { + } else if(handle_positive_response(handle, &message, + &response, shims)) { shims->log("Received a positive mode %d response on arb ID 0x%x", response.mode, response.arbitration_id); handle->success = true; |