Skip to content

Commit

Permalink
If an OBD-II PID is unrecognized, return fully parsed payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
peplin committed Mar 26, 2014
1 parent bc25d4a commit 5164a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uds/uds.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ float diagnostic_decode_obd2_pid(const DiagnosticResponse* response) {
case 0x62:
return response->payload[0] - 125;
default:
return 0;
return diagnostic_payload_to_integer(response);
}
}

Expand Down

0 comments on commit 5164a09

Please sign in to comment.